How do i control the withth and height of the browser

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!
 
E

Eliyahu Goldin

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
 
J

John Blair

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top