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

Maximising Windows 1

Status
Not open for further replies.

dkn

Programmer
Oct 11, 2000
60
US
Hi

I have a reporting application that uses the target attribute of the FORM tag to open the results in a new window. However, the size of the window it opens seems to be random, loosley based on the size of the last window opened.

Is there any way of specifying that the window is to be maximised when opened?. I have used the javacript window.open from a link, and I can specify window size and position, but how do I do this from a button?

Any help greatly appreciated

David :eek:)
 
Could try this ... call it when the page first opens

<script language=&quot;Javascript&quot;>
if (window.screen) {
var aw = screen.availWidth;
var ah = screen.availHeight;
window.moveTo(0, 0);
window.resizeTo(aw, ah);
}
</script>

I normally put this little script in the <head> of the page - works like a charm!

Greg
If you don't understand, just nod and smile ...
 
Cheers Greg

Works a treat!

David :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top