|
|
|
|
|
|
![]() |
#1 |
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
Join Date: Mar 2005
Posts: 24
|
javascript popup
hello everyone. im having a little trouble with some javascript. its a pop up script which works fine in firefox but in IE the link doesnt popup a window, it loads in the main window. Heres the code:
<script language="javascript"> var win = null; function NewWindow(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+',resizable' win = window.open(mypage,myname,settings) } </script> and then on the link itself: <a href="recommend/recommend.popup.php" onclick="NewWindow(this.href,'Recommend Site','450','550','yes');return false">Email This Site to a Friend</a> Can't figure this one out. |
![]() |
![]() |
![]() |
#2 |
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
Join Date: Feb 2005
Location: Toronto
Posts: 74
|
Have we met on another board before?
|
![]() |
![]() |
![]() |
|
|