Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popups, popup killers, & js 1

Status
Not open for further replies.

RenoWV

Technical User
Mar 16, 2002
156
US
I know that different "popup killer" programs have different parameters regarding what they affect. Some do only unrequested popups; some do all popups; some do all popups & new windows too.

So as a generalization, does anyone know if alert boxes are considered to be popups, and are thus affected by these programs?

If the answer to that is "no" (ie, alerts ARE allowed), then is it possible to create a javascript that will detect whether or not popup killing software is in use?

Depending on what it finds, it could launch an alert box saying something like "Alert! This site uses extensive javascript and includes user requested popup windows".

May be well beyond the capabilities of js, but if it were possible, would be an immensely useful script, now that popup killers are becoming more popuplar.

Does anyone have an insight about whether or not this can be accomplished?
 
Been playing around with your last script for a bit I cant get it to work at the moment. I need to print it out and follow th code through as I still get a couple of errors and I've never been very good at picking them up on screen It's not a lie if you believe it!

 
Hi,
One thing I do not see being covered here is the way the link is being called. I have found that many pop up blocker programs will allow one window to open if they first detect a click on a <A></A> hyperlink. They will block a window if it is called from an <input="button"> using OnClick. This applies equally to windows or alert/confirm boxes.

I had to change all my forms to use conventional hyperlinks and the submit() function rather than submit buttons. And it still does not work for all blocker programs unfortunately.

This is becomming a real problem for me because I do my entire shopping cart on the client side, and so the final secure checkout must open a separate secure window.
 
I'm not sure why "the final secure checkout must open a separate secure window." instead of just linking to one.

However, the code I wrote above alerts the user to the fact that they need to disable the popup blocker for the page. What more can you do?

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
If I remember correctly, because I have a dual frameset established. you cannot have one frame secure and the other non secure. I beleive it creates a access denied error or something like that. The order info is stored in the top frame so if you destroy the frames you lose the data.
Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top