Forum Moderators: open

Message Too Old, No Replies

anyone know how to set that kills pop-ups?

...don't ask

         

dogboy

1:55 pm on Jun 15, 2001 (gmt 0)

10+ Year Member



I have heard of javascript that if placed on a page will not let another frameset grab it, and put it in a frame... I think its called a frame crusher... But I am not talking about that:)

What I want to do is grab a url in my frame set, and if it tries to pop any kind of back button redirect (or console of any kind) I want it to kill the pop-up.

know of anything?

tedster

9:15 pm on Jun 15, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think this is possible, dogboy, at least not with JavaScript. The issue is security. JavaScript on one server cannot interfere with events generated on another server.

In the case of the frame buster, the framing actually is executed, but then it gets "busted" -- that is the window is then reloaded without the frame.

But if a JavaScript (called from a different server) executes a pop-up window, that window simply WILL be launched in the client. A script on a different server can't stop it, or close it either. Only the window which executed the pop-up can run a script to address that new pop-up window.

I've been chewing on this for a few hours, and I'm pretty sure you can't do it.

dogboy

9:36 pm on Jun 15, 2001 (gmt 0)

10+ Year Member



...appreciate that very much... you are a scholar and a gentleman:)