[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


How do you Maximize a Web Page in HTML?

Posted on 2007-11-15
Medium Priority
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 window.open.  The "maximize" option is no longer well supported so you should specify a size too.  For example ...

<a href="#" onclick="window.open('http://thedomain.com/page.htm', '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 window.open at http://www.devguru.com/Technologies/ecmaScript/quickref/win_open.html.


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="window.open('www.yahoo.com, 'Yahoo Site', 'height=600,width=800,fullscreen=yes');"></a>
Independent Software Vendors: 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!

LVL 54

Accepted Solution

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

<a href="#" onclick="window.open('http://www.yahoo.com', '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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
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…
Suggested Courses

650 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