"Shaun McKinnon" wrote on 12/11/2003:
> Didn't work for me for some reason, but thanks Mike.
>
> The funny thing is, is that it opens as 400x600, but then it
explodes to the
> size of the desktop...
>
> here's what i want to do:
>
> Customer goes to www.whatever.com/
> this takes them to index.html which then opens popup index.htm
> the main page is just a simple graphic thats 400x600, with a few
flash
> buttons (more of an ad)
> it's obviously in the center (still have to learn how to script
that).
You still haven't mentioned what browser you're using. I don't think
I could help you even if you did say what it was, but someone else
might be able to. I'm frankly at a loss for what would cause your
window to maximize like that. Out of pure curiosity, could you try
this exact string (don't change a thing, please)? I have a theory,
but I might be way off the mark...
<A href="#" onclick="window.open('about
:blank', 'about_blank',
'height=400,width=600'); return false">Test</A>
As for centring, that's fairly simple. Check the 'screen' object.
It's properties include the user's monitor dimensions, amongst other
things. Of course, until your maximizing problem is fixed, centring
is useless.
Mike
--
Michael Winter
M.Winter@[no-spam]blueyonder.co.uk (remove [no-spam] to reply)