chiprivers Posted March 23, 2007 Share Posted March 23, 2007 Im having trouble with a little bit of javascript if anybody could help, I don't really use it that often so I am probably making a really simple mistake! This is my script: <?php echo "<script language =\"JavaScript\">\n"; echo "document.body.style.backgroundColor=\"yellow\";\n"; $target = "data_grabber.php?sentDate=".date("Y-m-d",$date_plus_one); $window = date("Y-m-d",$date_plus_one); echo "window.open('".$target."','".$window."');\n"; echo "</script>"; ?> This is at the very end of my script and it is supposed to turn the page yellow (which it does) and then open up a new window, but it doesnt open the new window! Quote Link to comment Share on other sites More sharing options...
tarun Posted March 24, 2007 Share Posted March 24, 2007 It Seems Fine To Me... ??? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.