...

View Full Version : Need a little help with a pop up window thingy



Gibson
05-08-2007, 03:15 PM
Hey,

I have a pop up window but I want to turn off the status bar at the bottom but I can't figure it out. Here is 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+''
win = window.open(mypage,myname,settings)
}

</script>

and here is the link trigger:


<a style="border:none" href="http://www.mylink.com" onclick="NewWindow(this.href,'name','546','380','yes');return false"><img src="ltbutton.gif" border="0" /></a>

How do I turn the status bar off please :)

Hope you can help
Thanks

glenngv
05-08-2007, 04:27 PM
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
var settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',status=0';
win = window.open(mypage,myname,settings);
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum