Can you write php code inside a javascript function?
How do you pass parameter into a javascript function like the one below?
I want to change the file name "Header.php" dynamically. Can this be done?
<SCRIPT language="JavaScript1.2">
function alert()
{
testwindow= window.open ("Header.php", "mywindow",
"location=1,status=1,scrollbars=1,width=400,height=300");
testwindow.moveTo(200,400);
}
</SCRIPT>
Thanks.
Alex
How do you pass parameter into a javascript function like the one below?
I want to change the file name "Header.php" dynamically. Can this be done?
<SCRIPT language="JavaScript1.2">
function alert()
{
testwindow= window.open ("Header.php", "mywindow",
"location=1,status=1,scrollbars=1,width=400,height=300");
testwindow.moveTo(200,400);
}
</SCRIPT>
Thanks.
Alex