Popup Blocker Detection
Jul 23, 2005
We have a database application that runs in a popup Internet Explorer
application window. The reason for this is to isolate the casual user
from the address bar and the typical IE navigation buttons.
The application has a browser test page that displays an error message
when a popup blocker is found and opens a popup page stating the test
was successfull if there is no popup blocker.
Is there a reliable method (preferably javascript) for detecting the
major popup blockers (SP2, AOL, Yahoo, Google, MSN, etc.)? We currently
have a temporary solution in place which works OK but we would like to
have a better solution.
We have already reasearched this on the net, as well as spent a few
hours trying different options.
The application is designed to run on MSIE only so the solution can be
Explorer specific.
View 26 Replies
ADVERTISEMENT
Jan 22, 2010
I am trying to dynamically open a popup window but ie8 blocks it with the popup blocker. basically within a ajax fuction I have a confirm button and if the user clicks yes it opens a popup window. now I tried it with a javascript function but it got blocked, so I have tried it by creating a form with a button in it and instead of calling the popup function direct I call document.form.button.click and in the form my button has onclick"popup('<? echo url; ?>')" but this also is detected as a unwarranted popup and is blocked.
now I understand that the popup blocker works when a popup is called without user interaction, but allows popups on say button clicks. how can I get the popup to work
View 3 Replies
View Related
Sep 22, 2010
In my application i use window.showmodaldialog() to pop up a window. When i run it in IE pop up blocker wont blocks the window... But when run it in FireFox pop up blocker will blocks the pop up window.. is there any way to open a window with out blocking(avoiding ) by the pop up blocker?
View 1 Replies
View Related
Jul 20, 2005
How do pop-up blocker programs work? Do they intercept http transactions and strip out window.open() commands? Is there a single methodology?
View 9 Replies
View Related
Nov 30, 2005
The first page is the Index page, with a new post link which popups the second page.
The Second page (which loads OK) has a link that submits to the third page,
(below).
This third page closes itsself and Loads a new page into the Index page.
But problem is if the Index page is closed it needs to pop up the newpage.htm which get s blocked. Code:
View 1 Replies
View Related
Jul 17, 2009
I have a jsp page, which click a link and refresh the current page, and ALSO create a popup window which links to other jsp file to generate a file for download.My problem is I must create such popup window, with out blocked by IE-browser, any method, javascript, css....servlet, is ok.
View 1 Replies
View Related
Feb 1, 2004
I got a problem. I'm opening my flash pge in a popup that comes up when the site loads, but the fireburd popup blockers stops it. Anyone got a script that doesn't get blocked?
View 3 Replies
View Related
May 5, 2003
I'm going to make an attempt at coding a nice tree menu that is decent with browser support.
I want the tree to be displayed on all browsers (well, within a decent range). Of course, on older browsers, the menu won't be as functional.
Now, I'm going to be combining the javascript with a server-side language (asp.NET) and I'll be able to do some basic browser detection on the server.
But, I read about javascript object detection and am wondering how well that works exactly.
Like, what if a browser that doesn't support objects period tries to run some object detection code? Also, which browsers support user defined objects?
See, I'm thinking of breaking down the script in 3 categories. Browsers that won't get any javascript... these would be the browsers that don't support object detection, browsers with basic javascript... with these I would be able to code my own object and I would test for different features. And then there would be the browsers that can run it all.
So, basically, my question is what browsers support what features and how should I break down my code between them? A long time ago (back in the Netscape 4 / IE4 days) I did some javascripting, but since then I haven't really done any. I remember that NS4 didn't support div tags but supported layers... anyway, it got really messy.
View 4 Replies
View Related
Jul 23, 2005
I have a contact page which is opening in a new window using
window.open. Since this is called when the user clicks a link, pop up
blocker don't block it.
However, I want to show a survey after this window has been closed. I
find nothing else but to use window.open. But this time, I use the
onunload tag in the opened window. This is blocked by pop up blockers.
Is there a way to print my survey, whatever it is, from a window
opened by the user and poping on the onunload event?
View 3 Replies
View Related
May 14, 2009
I have a wee bit of code that handles a select list change to load some content via AJAX. In IE 7 & 8 (works a treat in 6!), clicking on the select list triggers the pop-up blocker thingy. My code certainly does not open a new window or anything like that:
$('#group_nav').change(function()
{
var group_id = $(this).val();[code]....
adminNavSetup() is the function this block of code resides in.However, commenting that out has no effect. Note that the select list doesn't even open; a click is all it takes. Also, no request is made to the server.why the pop-up defense would be triggered like that?
View 5 Replies
View Related
Jul 23, 2005
I have a page with a script that works only in IE and as I heard from
feedbacks it doesn't run under IE on Mac.
I have browser type redirect script for that page that seems to be
working fine except it doesn't detect the OS ( IE on Mac just gives
blank page). Can someone add to the code that I would give me one page
for IE on Windows and another one for all others? Code:
View 1 Replies
View Related
Jul 20, 2005
I have on different form elements an onChange routine.
Now I was wondering how I can see which element fired the routine. Can I
write something like "if (self.name=='elementA')"?
View 1 Replies
View Related
Nov 21, 2009
I'm using the code below for the "launch page" to open a JS window and know when it has been closed, and than execute some other code that should be run after the pop-up closes.
javascript Code:
This works, and does exactly what I want. Do any of you JS experts see any reason for concern? Anything that makes it suboptimal?
View 3 Replies
View Related
Jan 30, 2007
So I need script, which will detect users browser, and if browser will be IE, then show some link in content, if browser is FireFox or Opera, then hide that link. Link looks like:
<tr>
<td align='center' valign='top'><a href='/' target='_blank'>link</a></td>
</tr>
View 4 Replies
View Related
Sep 28, 2005
I would like to have my page display the IP address of the user when the page loads. I have heard of the IP detection scripts when using the
"var ip = '<!--#echo var="REMOTE_ADDR"-->" attribute to make a window or alert popup and display the IP of the user, and I have also come some scripts that display the IP in the status bar. However, I want the current IP adress to be shown on the page itself, part of the <Body>.
View 2 Replies
View Related
Mar 23, 2006
function doDOMStuff() {
var el = document.getElementById('myElId');
// object detection
if(!document.getElementById) return false;
//or
if(!document.getElementById) return;
// doStuff
}
View 5 Replies
View Related
Jan 18, 2004
I currently have a site which uses cookies, the problem is that I want it to detect if the browser being used has cookies enabled. I know you can accomplish this by setting a cookie in JavaScript and testing for it (i don't know how to do it, though), *BUT* I need the script to be compliant with all (or at least most) browsers. By this I mean, Mozilla, Firebird, Opera, IE, Netscape, and anything else you can think of.
View 2 Replies
View Related
Oct 3, 2004
Is there a simple object detection to sniff for IE 6 only ( not IE 5.5 or lower ) ?
View 2 Replies
View Related
Apr 23, 2001
How do you find out if a certain Plugin has been installed in IE 5.5 using Javascript?
I know that in netscape you can use navigator.plugins so I was hoping there was something as easy as this.
View 2 Replies
View Related
Jul 23, 2005
I have some html code i would like to be printed to the page only if the
browser has javascript enabled. I have tried to use document.writeln()
but the string i want to print bot contains some ' and " in it. I don't
know how to set the delimiters of the string that is passed as argument
so that i don't get an error in the page.
View 1 Replies
View Related
Jul 23, 2005
I've have got this script, the only thing I want to be changed is the first part. It has to detect IE version 6 instead of just "Microsoft Internet Explorer". Can somebody help me out? I tried "Microsoft Internet Explorer 6" but that doesn't work.
<SCRIPT LANGUAGE="Javascript">
<!--
bName = navigator.appName;
if (bName =="Microsoft Internet Explorer") {
document.write('<link media="screen" rel="STYLESHEET" type="text/css"
href="stylesheet1.css">')
} else {
document.write('<link media="screen" rel="STYLESHEET" type="text/css"
href="stylesheet2.css">')
}
//-->
</SCRIPT>
View 8 Replies
View Related
Jul 23, 2005
How to detect that user started to scroll the page ? Separately vertical and
horizontal scroll. Is it possible ?
View 2 Replies
View Related
Mar 23, 2006
I'd like to detect the shift key when a button is "clicked" in
Firefox/Mozilla. If the button is clicked with the mouse, no problem.
However, if the onclick event is keyboard originated, then my method is
not working. Same thing for SELECT elements.
The simple web page below shows the issue. Click with the mouse while
holding down the shift key, and the Shift key's status registers.
However, use Shift+Alt+o, or either (while the button has focus)
Shift+Space or Shift+Enter to kick off the onClick event and the shift
key is not detected. Works fine with IE 6 on my Win XP Pro. Code:
View 7 Replies
View Related
Jul 20, 2005
I want to know the height of the viewable portion of a page (minus scrollbar)
in Opera and Mozilla.
For Opera, I could use document.body.clientHeight. Unfortunately, this won't
work in Mozilla because Mozilla also subtracts the sizes of the top and bottom
margins.
For Mozilla, I could use document.documentElement.clientHeight.
Unfortunately, this won't work in Opera because Opera returns the height of
the entire page, not just the viewable portion.
So I have two options:
1) Use browser detection code to determine if the user is running Opera or
Mozilla, and then use the appropriate clientHeight code.
2) Use window.innerHeight. This is supported by both Opera and Mozilla,
however it returns the height of the viewable portion of the page *including*
the scrollbar. Is there any way to determine the width of a scrollbar? If
not, then I would have to make an assumption and subtract the hardcoded width
of the scrollbar from window.innerHeight... but only if the scrollbar is
present, is there a way to determine that?
View 4 Replies
View Related
Jan 7, 2006
Well after playing around a little I have created a solution that works although it appears a little chunky. The problem was finding the browser size to use the width as a variable for size conditional aspects to a site. Code:
View 8 Replies
View Related
Jan 28, 2006
I am looking for a detailed and correct browser detection script. Preferable a one that does not detect based on the UA string, but detects using DOM model or tests for functions, etc...
I'd like it to return OS, Browser and version as a separate variables.
View 14 Replies
View Related