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
  • 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>
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
HTML Lists 3 29
C3-->D3 Line Chart 4 19
Bootstap Icons 3 22
javascript page is not accepting parameters 2 12
This article discusses four methods for overlaying images in a container on a web page
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

762 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now