![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hello, Can I use JavaScript to force a maximised window ? |
#4
| |||
| |||
|
|
Geoff Cox wrote: Hello, Can I use JavaScript to force a maximised window ? No. http://webtips.dan.info/force.html |
#5
| |||
| |||
|
|
i haven't tried this, but maybe: window.resizeTo(window.screen.availWidth, window.screen.availHeight); |
|
or possibly window.resizeTo(window.screen.width, window.screen.height); If anything, check out the window and screen objects |
#6
| |||
| |||
|
|
On Wed, 02 Nov 2005 19:08:57 +0000, Stewart Gordon smjg_1998 (AT) yahoo (DOT) com> wrote: Geoff Cox wrote: Hello, Can I use JavaScript to force a maximised window ? No. http://webtips.dan.info/force.html Stewart, I accept that this would not normally be a good idea but I would be using it for a small number of people for whom it might improve the situation. The reason for perhaps using it is that I have a slider with a pointer. If the user starts with a minimised window and then maximises it, the pointer image stays where it is and is thus in the wrong position for the maximised window... |
#7
| |||
| |||
|
|
Can I use JavaScript to force a maximised window ? No. http://webtips.dan.info/force.html |
#8
| |||
| |||
|
|
The reason for perhaps using it is that I have a slider with a pointer. If the user starts with a minimised window and then maximises it, the pointer image stays where it is and is thus in the wrong position for the maximised window... move the image when the window is resized. |
#9
| |||
| |||
|
|
window.resizeTo(window.screen.availWidth, window.screen.availHeight); |
#10
| |||
| |||
|
|
On Wed, 02 Nov 2005 22:11:44 GMT, "Zoe Brown" zoenaomibrown (AT) N-O-S-P-A-A-Mtesco (DOT) net> wrote: The reason for perhaps using it is that I have a slider with a pointer. If the user starts with a minimised window and then maximises it, the pointer image stays where it is and is thus in the wrong position for the maximised window... move the image when the window is resized. Zoe, Not sure what you mean re "move the image" ? I had thought that perhaps I need to "refresh" the page if the user resizes the window as that does put the pointer image back in the right place. How do I detect a change in size and then force a refresh? |
![]() |
| Thread Tools | |
| Display Modes | |
| |