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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximise a new window 4

Status
Not open for further replies.

NickyB

Programmer
May 11, 2001
21
GB
When using the window.open method how do you open a maximised window (not fullsize as this loses the navigation bars)

Any help would be appreciated - I'm hoping to avoid using resizeby or resizeto
 
Assuming Javascript:
Code:
...
if (document.all || document.layers) { self.moveTo(0,0); self.resizeTo(screen.availWidth,screen.availHeight)} 
...
 
Only problem is that doesn't work as the page I need to resize contains a redirect to either a html or pdf page. The resize works fine but then the page cannot redirect - it just displays a blank page. Any suggestions??? X-)

 
or like this:
Code:
<script>
function yourOpener(yourURL)
{
 myWidth = screen.availWidth;
 myHeight = screen.availHeight;
 yourFeatures = &quot;top=0,left=0,width=&quot;+myWidth+&quot;,height=&quot;+myHeight
 myHandle = window.open(yourURL,&quot;yourName&quot;,yourFeatures)
}
</script>
HTH, Rydel ---
---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top