zxedxz Posted August 23, 2005 Posted August 23, 2005 I'm having a very weird problem with javascripts. If I add the pop-up java code in the header section, the pop-up doesn't work, but if I add it after calling the javascript, then it works. for example, my code <script language="javascript"><!-- function popupTrackerWindow(url) { window.open(url,'popupTrackerWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=no,copyhistory=no,width=650,height=500') } //--></script> If I put this in <head></head> it doesn't work, but if I put it before this, <script language="javascript"><!-- function popupTrackerWindow(url) { window.open(url,'popupTrackerWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=no,copyhistory=no,width=650,height=500') } //--></script> <a href="javascript:popupTrackerWindow('anylink.php')">link</a> Then it works. Anyone one know what might cause this?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.