| | |
How does IE determine a popup?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread 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
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
Plato forgot the nullahedron..
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.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<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.
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Quick Help for Cookie script?
- Next Thread: Javascript and Firefox ISSUES
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxhelp animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column cookies createrange() css cursor decimal dependent design disablefirebug dom download dropdown editor element engine error events explorer ext file form forms google gwt gxt highlightedword html htmlform ie8 iframe image() images index internet java javascript jawascriptruntimeerror jquery jsf jsfile jump listbox math microsoft mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent pdf php player post problem progressbar rated rating regex runtime scroll search select session shopping size sql star starrating stars synchronous text textarea validation w3c web website window windowofwords windowsxp wysiwyg xml \n






