Link to home
Start Free TrialLog in
Avatar of stummj
stummjFlag for United Kingdom of Great Britain and Northern Ireland

asked on

HTML Open Window maximized and at the front

Hi Experts

Can someone help me with the code I need to insert into my HTML page to force it to open maximised and in front of any other window that is open?

Thanks
Avatar of manomani
manomani
Flag of India image

Hi.,

Just Setup your link like this which takes ("User") screen size and load the page for full size.

<a href="http://www.example.com/" onclick="window.open(this.href, 'child', 'height=' + screen.height + ',width=' + screen.width + ',fullscreen'); return false">Your link</a>
Avatar of stummj

ASKER

Ah - no can do I bought a flash website template which calls out to external pages at specific hooks. So for example there is an external hook for mu client page, my blog, my samples etc. but I cant change the page that calls them, only the pages that are called.
hi.,

you are asking (i.e) on page load the page should load maximized and top of others ?.

need little brief explanation of question.
Avatar of stummj

ASKER

Exactly that. I need some code to add to the page such that when it opens it does so maximised and on top of others
ASKER CERTIFIED SOLUTION
Avatar of manomani
manomani
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stummj

ASKER

Great - I will try it thanks. Do you know if this code is browser dependant or will it work across browsers (or at least IE, Firefox, Chrome and Safari)
hi stummj.,

Cross-browser supported :)

regards
manomani.
Avatar of stummj

ASKER

:) Thanks! I'll load it up later and let you know how I get on
Avatar of Michel Plungjan
Actually outerWidth is not cross browser!