I'm having a problem activating a javascript popup, using the isset() function.
I got this simple popup fuction from tizag:
<script type="text/javascript">
<!--
function myPopup2() {
window.open( "http://www.google.com/", "myWindow",
"status = 1, height = 300, width = 300, resizable = 0" )
}
//-->
</script>
Then you can activate the function with this:
<form>
<input type="button" onClick="myPopup2()" value="POP2!">
</form>
But, I want to open the popup when a certain variable exists. Has anyone pulled this off?
<?
if(isset($var)){
// open the popup
}
?>
Hope I've explained myself enough! I've never seen anyone do this yet.