Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-03-12, 03:30 AM   #1
Vox
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.
Vox is offline   Reply With Quote
Old 2005-03-19, 01:12 AM   #2
SpeedyG
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?
__________________
Johnny xXx - TGP/MGP
Submit your picture and movie galleries to Johnny xXx
SpeedyG is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:11 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc