Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 741
  • Last Modified:

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
0
stummj
Asked:
stummj
  • 4
  • 4
1 Solution
 
manomaniCommented:
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>
0
 
stummjAuthor Commented:
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.
0
 
manomaniCommented:
hi.,

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

need little brief explanation of question.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
stummjAuthor Commented:
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
0
 
manomaniCommented:
Hi buddy.,

Sorry for late reply.

<script language="JavaScript">
<!--
function max()
if (window.screen) {
window.moveTo(0,0);
window.outerHeight = screen.availHeight;
window.outerWidth = screen.availWidth;
}
}
//-->
</script>

Call that onload:

<body onload="max()">
0
 
stummjAuthor Commented:
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)
0
 
manomaniCommented:
hi stummj.,

Cross-browser supported :)

regards
manomani.
0
 
stummjAuthor Commented:
:) Thanks! I'll load it up later and let you know how I get on
0
 
Michel PlungjanIT ExpertCommented:
Actually outerWidth is not cross browser!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now