Hello all,
I'm extremely new to Javascript, and I realize that this is a PHP forum, but I was wondeirng if anyone knew how to use PHP inside a javascript decision structure, such as:
<SCRIPT language="JavaScript">
<!--
function go_there(id)
{
var where_to= confirm("Do you really want to go to this page??");
if (where_to== true)
{
</script>
<?php
echo "Hello World!";
?>
<script>
}
else
{
}
}
//-->
</SCRIPT>
but that doesn't work.
Sorry for a question that sort of tests the boundaried of the forum! Any input is greatly appreciated! Thanks so much!
-Robert