Thursday, March 29, 2012

Maximise screen automatically

Hi,

When the user opens my homepage (the first page of the application) I'm wanting the page to automatically maximise, since at 1024x768 everything fits in nicely (all the users are at this resolution btw) but when it's not maximised it looks horrid and you have to manually maximise the window to start browsing.

Any ideas??

Cheers again,
AndrewTry to open the page with a javascript function like;

window.open("your.asp", "", 'toolbar=yes, directories=yes,location=yes, status=yes, menubar=yes, resizable=yes, scrollbars=yes, left =0, top=0, height = ' + screen.availHeight + ', width = ' + screen.availWidth);

Does it solve your issue ?
Kinda - so there's nothing in VB.NET / ASP.NET which tells the page to maximise?

If there's not then I guess I'll have to use a Javascript function.

Thanks udayakumar_jr!

Andrew

0 comments:

Post a Comment