Ken

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromKen
ToMe
Subjectopening a window at top left corner
Date10 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
FromMe
ToKen
SubjectRe: opening a window at top left corner
Date10 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/
FromKen
ToMe
Subjectopening a window at full size
Date10 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
FromMe
ToKen
SubjectRe: opening a window at full size
Date10 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
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.