Email conversation
From | Ken |
To | Me |
Subject | opening a window at top left corner |
Date | 10 October 2005 14:43 |
Hi,
I'm creating a website for my assignment right now.
I want to open the index.html at the top left corner of the screen.
I found out how to pop up a window at a desired position but this is not a
pop up window.
I need it to self position it to the top left corner of the screen. Is that
possible??
right now the window is set to resize itself to 980 x 720 by using the
following code:
<script>
self.resizeTo(980,720);
</script>
I was wondering if you could help me out here. Thanks.
I hope this email doesn't get sorted as spam.
Regards
Ken
From | Me |
To | Ken |
Subject | Re: opening a window at top left corner |
Date | 10 October 2005 14:51 |
Ken,
> <script>
> self.resizeTo(980,720);
> </script>
Right, this resizes. There is a similar one for repositioning:
<script type="text/javascript">
window.moveTo(0,0);
window.resizeTo(980,720);
</script>
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
From | Ken |
To | Me |
Subject | opening a window at full size |
Date | 10 October 2005 14:54 |
Hi Mark,
Thank you so much for that, is it possible to self self the window to the
available screen size??
i'm using a fixed 980 x 720, but i would really like it to be full screen.
I've been trying to look for a code all over the net today...
Thanks for your help, you have been most kind.
And thanks for you super fast reply.
Regards
Ken
From | Me |
To | Ken |
Subject | Re: opening a window at full size |
Date | 10 October 2005 15:01 |
Ken,
> Thank you so much for that, is it possible to self self the window to
> the available screen size??
yep. easy:
window.resizeTo(screen.availWidth,screen.availHeight);
Tarquin