PDA

View Full Version : Popup not showing on MAC


friday
05-24-2004, 05:09 AM
I have this in my head:


<script language="javascript">
function openWindow(mypage,myname,w,h,scroll)
{
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+''
newWindow = window.open(mypage,myname,settings)
}
</script>




And I have this in my body tag:


<body background="images/achtergrond.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="preloadImages(); javascript:openWindow('signup.php','signup','350','20','no')">




The popup window works fine, no problem at all on windows, but ON MAC the window never pops up. Neither on Internet Explorer or Safari.
Any idea?

agent002
05-24-2004, 05:55 AM
you could need to remove javascript: from the onload attribute :)

friday
05-24-2004, 02:24 PM
aaargghh do you know i was looking for 30 minutes at itw ithout noticing?