Hi,
I am trying to prevent iframe breakout. This is how i attempted to do
it in head section of my HTML document:
function windowUnload(evt) {
evt.stop();
}
Event.observe(window, 'unload', windowUnload);
$('ifr').observe('unload', windowUnload);
//Event.observe(window, 'unload', function(event) {
// Event.stop(event);
//});
'ifr - the id of my iframe.
My code does not work.
Is it possible at all with prototype?
What am i doing wrong, can some one give me some feedback?
Regards,
Karlson
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---