•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 330,372 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,856 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3047 | Replies: 13 | Solved
![]() |
I'm trying to design a site that makes use of
the window.open() javascript method by opening certain links in a new window with a specific pixel size and position onscreen, but Internet Explorer (with default security settings) blocks most attempts...Is there any way around this, to let IE know that its a legitimate site? Or does anyone know exactly what criteria IE looks at in determining popups?
All the pages opened are in the same site, under the same domain, and most of them are even served from the same directory. I just need to open them at a certain position on-screen, and have them be a certain size, and window.open() seems like the correct way to do this.
the window.open() javascript method by opening certain links in a new window with a specific pixel size and position onscreen, but Internet Explorer (with default security settings) blocks most attempts...Is there any way around this, to let IE know that its a legitimate site? Or does anyone know exactly what criteria IE looks at in determining popups?
All the pages opened are in the same site, under the same domain, and most of them are even served from the same directory. I just need to open them at a certain position on-screen, and have them be a certain size, and window.open() seems like the correct way to do this.
--
The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
~Terry Pratchett
The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
~Terry Pratchett
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 899
Reputation:
Rep Power: 4
Solved Threads: 43
Using the target _blank attribute on a hyperlinked anchor tag is generally more likely to get past popup blockers...
That's not so good because you can't control the spawned window's size directly or open the new window automatically.
Some popup blockers would object to this kind of popup aswell O_O
That's not so good because you can't control the spawned window's size directly or open the new window automatically.
Some popup blockers would object to this kind of popup aswell O_O
If it only works in Internet Explorer; it doesn't work.
NO there is no way to do that. If there was, then every site would do it so their popups dont get blocked!
It is very important to read this: http://www.catb.org/~esr/faqs/smart-questions.html
i just dont understand why microsoft can't make even a simple web browser that works 
well, the solution ive come up with is to just use target="_blank" links, then resize and relocate the window as it loads. its pretty hacky, but its the only thing that works in IE under default security settings. plus it has a degree of degredation for when javascript is disabled altogether.
thanks all, i appreciate the advice!

well, the solution ive come up with is to just use target="_blank" links, then resize and relocate the window as it loads. its pretty hacky, but its the only thing that works in IE under default security settings. plus it has a degree of degredation for when javascript is disabled altogether.
thanks all, i appreciate the advice!
--
The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
~Terry Pratchett
The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
~Terry Pratchett
have you tried this?
always better to give folk a choice when it comes to popups if possible imo.
<script>
function openpage(){
//set this to the file of the page.html
var pagefile="YOUR PAGE HTML HERE"
if (document.all)
pagewindow=window.open(pagefile,"","width=445,height=250")
else
pagewindow=window.open(pagefile,"","width=445,height=250,scrollbars")
}
</script>
<a href="javascript:openpage()">OPEN PAGE CLICK HERE</a>always better to give folk a choice when it comes to popups if possible imo.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
- Previous Thread: Quick Help for Cookie script?
- Next Thread: Javascript and Firefox ISSUES



Linear Mode