Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I remove window options of a new POP UP window in IE?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0


I'm passing some values as querystrings to the new pop up window. I'm able to control the size and location of the window but not able to remove the scrollbars and the toolbar.
Can anyone show me how its done for IE.
Thanks.
 
Try this...

Insert in the head tag

<script>
function NewWindow(mypage, myname, w, h, scroll, resize) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resize+''
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
</script>


use this for your link

<a href=&quot;something.htm&quot; onClick=&quot;NewWindow(this.href,'name','794','565','no','no');return false;&quot;><img src=&quot;img.gif&quot; width=&quot;250&quot; height=&quot;30&quot; border=&quot;0&quot;></a>

Regards,
Soon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top