How do I call a PHP string from within javascript? This is parts of my code but it isn't working... Thanks!
<?php $URLString='MySite.html'; ?>
<html>
<body>
<script language="JavaScript" type="text/JavaScript">
var popUpWin=0;
function popUpWindow(URLStr) {
if(popUpWin) {
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = window.open(URLStr);
}
</script>
<script language="javascript">
popUpWindow(<?php $URLString ?>);
</script>
</body>
</html>