Solved

Pop up another browser and not minimized

Posted on 2003-11-28
12
514 Views
Last Modified: 2013-11-28
Hi...

When I click a hyperlink in my document with target = "_blank", another browser pops up but in MINIMIZED form. How can i adjust so that it always pops up with MAXIMIZED form.

0
Comment
Question by:ricjava
12 Comments
 

Expert Comment

by:icepricessa
Comment Utility
you could change ur code to this instead of target = "_blank"

"window.open(this.href, 'popupwindow', 'width=set the size u want,height=set the size u want,scrollbars,resizable'); return false;"


hope it helps
0
 

Author Comment

by:ricjava
Comment Utility
Here is my code

<a href="outPrbDetAss_sp.htm" target="_blank">Open</a>

Is there any way to set it so that when I click the hyperlink, a maximized browser pops up all the time? (i mean via html alone without javascript)
0
 

Expert Comment

by:icepricessa
Comment Utility
hmm.. i dont really think u could just use html alone if you want to set/fix the browser size the moment the user clicks on the link

you could check this out very useful but its javascript

http://www.webdevtips.com/webdevtips/codegen/openwin.shtml
0
 
LVL 11

Expert Comment

by:Zontar
Comment Utility
<a href="outPrbDetAss_sp.htm" target="OPDAWin">Open</a>

or some other made-up name. This spawns a new window that is the same as the default window size/location for that user (just as if the user started a new instance of the browser).

However, to guarantee that the window is maximised, you will have to use JavaScript.
0
 

Author Comment

by:ricjava
Comment Utility
hi

It can't work....this is the code

 <a href="#" target="window.open('prbDet_rq.htm', 'popwin','width=500,height=400,status=yes,toolbar=no,menubar=no')">Open</a>

I think I have followed what you all recommend me but however i set the width and height it shows no effect.

0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Accepted Solution

by:
icepricessa earned 50 total points
Comment Utility
try
<a href="#" onclick="window.open(this.href, 'popupwindow', 'width=500,height=400,status=yes,toolbar=no,menubar=no'); return false;">open</a>
0
 

Author Comment

by:ricjava
Comment Utility
now it has effect but the position of the pop up window is on the right and not properly positioned...any way to adjust the position?
0
 

Expert Comment

by:icepricessa
Comment Utility
http://www.bravenet.com/resources/html/popup_script.php

go there and create your pop up--- its easier :p or you could go to

http://www.webdevtips.com/webdevtips/codegen/openwin.shtml

they're both pop up window generators :) hope it helps
0
 

Expert Comment

by:Priya25
Comment Utility
I came across the same problem as yours.
Try this:
Put the following line in the HTML code of the pop up window at the start of the body section

<body onLoad="window.focus()">

This should help
0
 

Author Comment

by:ricjava
Comment Utility
I'll come back soon.....
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
Digital marketing agencies have encountered both the opportunities and difficulties that emerge from working with a wide-ranging organizations.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

772 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

9 Experts available now in Live!

Get 1:1 Help Now