473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

window.open problem

Have been successfully using the following to open a pop-up for some
time

function msg(url) {

window.open(url,'msg','scrollbars=yes,menubar=yes, width=750,height=400,resizable=yes,toolbar=yes,loc ation=yes,status=yes')
}

Works fine on IE6 & Firefox, but IE7 opens a new tab obscuring the
calling page. How can IE7 be made to open a new window?
Jun 27 '08 #1
5 1701
IE Tools | Internet Options | General | Tabs | Settings | When a pop-up is
encountered...

Lots more in IE Help! <wink>
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
AumHa VSOP & Admin http://aumha.net
DTS-L http://dts-l.net/
Gr************@googlemail.com wrote:
Have been successfully using the following to open a pop-up for some
time

function msg(url) {

window.open(url,'msg','scrollbars=yes,menubar=yes, width=750,height=400,resizable=yes,toolbar=yes,loc ation=yes,status=yes')
}

Works fine on IE6 & Firefox, but IE7 opens a new tab obscuring the
calling page. How can IE7 be made to open a new window?
Jun 27 '08 #2
On Wed, 25 Jun 2008 10:45:48 -0700, Grouchy.Oldgit wrote:
window.open
(url,'msg','scrollbars=yes,menubar=yes,width=750,h eight=400,resizable=yes,toolbar=yes,location=yes,s tatus=yes')
}
window.open is NOT required to open a new window. In most modern user
agents, the end use may choose to open window a new window, open a new
tab or ignore the request entirely.
Jun 27 '08 #3
Many thanks for prompt reply.

Unfortunately it seems that IE7 by default opens the link in a tab
rather than a pop-up! As most users probably never get past the
defaults, is there any way in javascript to force a link to open in a
pop-up?

On Jun 25, 10:52*am, "PA Bear [MS MVP]" <PABear...@gmail.comwrote:
IE Tools | Internet Options | General | Tabs | Settings | When a pop-up is
encountered...

Lots more in IE Help! <wink>
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
AumHa VSOP & Adminhttp://aumha.net
DTS-Lhttp://dts-l.net/

Grouchy.Old...@googlemail.com wrote:
Have been successfully using the following to open a pop-up for some
time
function msg(url) {
window.open(url,'msg','scrollbars=yes,menubar=yes, width=750,height=400,resi*zable=yes,toolbar=yes,lo cation=yes,status=yes')
}
Works fine on IE6 & Firefox, but IE7 opens a new tab obscuring the
calling page. How can IE7 be made to open a new window?- Hide quoted text -

- Show quoted text -
Jun 27 '08 #4
Hi,

var
nwin=window.open(url,'msg','scrollbars=yes,menubar =no,width=750,height=400,resi*zable=yes,toolbar=no ,location=yes,status=yes');
nwin.focus();
void(0);

Regards.

<Gr************@googlemail.comwrote in message
news:34**********************************@j1g2000p rb.googlegroups.com...
Many thanks for prompt reply.

Unfortunately it seems that IE7 by default opens the link in a tab
rather than a pop-up! As most users probably never get past the
defaults, is there any way in javascript to force a link to open in a
pop-up?

On Jun 25, 10:52 am, "PA Bear [MS MVP]" <PABear...@gmail.comwrote:
>IE Tools | Internet Options | General | Tabs | Settings | When a pop-up
is
encountered...

Lots more in IE Help! <wink>
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
AumHa VSOP & Adminhttp://aumha.net
DTS-Lhttp://dts-l.net/

Grouchy.Old...@googlemail.com wrote:
Have been successfully using the following to open a pop-up for some
time
function msg(url) {
window.open(url,'msg','scrollbars=yes,menubar=yes, width=750,height=400,resi*zable=yes,toolbar=yes,lo cation=yes,status=yes')
}
Works fine on IE6 & Firefox, but IE7 opens a new tab obscuring the
calling page. How can IE7 be made to open a new window?- Hide quoted
text -

- Show quoted text -
Jun 27 '08 #5
"rob^_^" <ie**********@hotmail.comwrote:
<snip>
var nwin=window.open(url,'msg','scrollbars=yes,menubar =no,width=750,
height=400,resi*zable=yes,toolbar=no,location=yes, status=yes');
nwin.focus();
void(0);
<snip>

So which part of that overrides the user's settings and forces IE 7 to
open a new window instead of opening a new tab to show the url?

And what is the - void(0); - statement supposed to do? Pure mystical
incantation or is there some reason for its being there?
<Gr************@googlemail.comwrote:
<snip>
>... , is there any way in javascript to force a link to open in a
pop-up?
It is often said that people who top-post don't bother reading what they
are replying to.

Richard.

Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: toedipper | last post by:
Hello, Can someone kindly tell me what is wrong with this code? A simple page with a link that when clicked uses window.open but when I open it in IE6 and click on the link I get 'Line 12...
2
by: Samir Pandey | last post by:
Hello, I am using the following javascript code to open a new window. Somehow, IE always opens a new window. It doesn't open target url in the window name given. All i want is, if there is a...
5
by: Richard Trahan | last post by:
I have an inscrutable problem with window.open. Consider the following code: var graphwin = window.open("","graphWin","height=400,width=400,resizable=yes"); It works perfectly in one place in...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
1
by: Melissa | last post by:
I have inherited an intranet ASP.NET (C#) page running on Windows 2000. The page populates a label control with some javascript to open a pop-up to a document (xls, doc, pdf, etc.). This is...
5
by: Rick Brandt | last post by:
I am using window.open in an AJAX page and it works in both IE and FF but in the latter the hourglass stays up and both the progress bar and the small animated circle-of-dots graphic keep on...
4
by: sunith | last post by:
I have used window.open to open some number of urls. the problem is that after the window is opened, there would be some javascript error or some other problems for the opened url(site). If i open...
1
by: mks | last post by:
hello sir, in case of mozilla complete javascript is executed before the secondary window dialog return something or close. i want to perform some opertion on the secondary dialog and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.