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

resize window 2

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
CA
Hi

the weekends here finally!
I have a dialogue box with a list of forms that a user can fill out. When selected the appropriate form is opened as a seperate window. Only problem is that the window when opened is tiny - how do "maximize" the browser window?

thanks,
 
Try this amigo:

Add this between the <HEAD> & </HEAD> tags of your dicument:

Code:
<script>
function maXimize(){
window.moveTo(0,0)
window.resizeTo(screen.width,screen.height)
}
</script>[\code]

Modify your BODY tag to include the onLoad=&quot;maXimize()&quot; function call shown below.

[code]<body onLoad=&quot;maXimize()&quot;>[\code]

Hope this helps! » » » » » »
Mike Barone
[URL unfurl="true"]www.cgiscript.net[/URL]
FREE and Pro CGI/Perl Scripts

FREE Scripts
[URL unfurl="true"]www.cgiscript.net/scripts.htm[/URL]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top