How do you Maximize a Web Page in HTML?

Posted on 2007-11-15
Last Modified: 2012-06-27
Hello-  I have a hyperlink on my web page that opens another web page when clicked.  When that hyper is clicked the correct web page opens but is not maximized by default.  What can I add to my HTML or javascript code to have that page open Maximized?

Question by:JoshinHtown
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 54

Expert Comment

ID: 20293953

HTML can't, it just opens the new window as the same size as the current one, but Javascript can help.  You would use  The "maximize" option is no longer well supported so you should specify a size too.  For example ...

<a href="#" onclick="'', 'windowName', 'height=600,width=800,fullscreen=yes');">Open window</a>

You can specify the URL, the window name (which is used by the script) and the features.

Let me know if you have any questions or need more information.

LVL 54

Expert Comment

ID: 20293956
You can get more info on at


Author Comment

ID: 20294076
Hello b0lscott-

I tried this code below for my hyperlink but nothing happens when I click it at runtime.  What am I missing?  Regards,

<area href="#" onclick="', 'Yahoo Site', 'height=600,width=800,fullscreen=yes');"></a>
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

LVL 54

Accepted Solution

b0lsc0tt earned 50 total points
ID: 20294100
There are just some small errors.

<a href="#" onclick="'', 'YahooSite', 'height=600,width=800,fullscreen=yes');">Link</a>

That should work.


Author Comment

ID: 20294328
Great. Thanks
LVL 54

Expert Comment

ID: 20294572
Your welcome!  I'm glad I could help.  Thanks for the grade, the points and the fun question.


Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question