Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Weird Pop-Up java problem


zxedxz

Recommended Posts

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?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...