Solved

How do you Maximize a Web Page in HTML?

Posted on 2007-11-15
6
1,461 Views
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?

Thanks.
0
Comment
Question by:JoshinHtown
[X]
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
6 Comments
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 20293953
JoshinHtown,

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.

b0lsc0tt
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 20293956
You can get more info on window.open at http://www.devguru.com/Technologies/ecmaScript/quickref/win_open.html.

bol
0
 

Author Comment

by:JoshinHtown
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>
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!

 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 50 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.

bol
0
 

Author Comment

by:JoshinHtown
ID: 20294328
Great. Thanks
0
 
LVL 54

Expert Comment

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

bol
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

732 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