How do i control the withth and height of the browser

  • Thread starter Thread starter John Blair
  • Start date Start date
J

John Blair

Hi,

When i run my asp.net page - i would like the browser to display the page in
full screen - i.e. width 100% and height 100% of the v.d.u. - how do i
achieve this?

Thanks a lot!
 
You must use javascript to achieve something close enough to full screen.
Differences in browsers makes the task more difficult. The simplest thing,
probably, is to setup a javascript function that will be called when the
page loads and do something like this:

window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);

There could be more precise operations.

Eliyahu
 
Worked a treat! Thank you very much!

Eliyahu Goldin said:
You must use javascript to achieve something close enough to full screen.
Differences in browsers makes the task more difficult. The simplest thing,
probably, is to setup a javascript function that will be called when the
page loads and do something like this:

window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);

There could be more precise operations.

Eliyahu
 
Back
Top