Yeah, ran it through some tests, definitely does not work
On Mar 18, 4:58 pm, Matt Foster <mattfoste...@gmail.com> wrote:
> $("ifr").observe("beforeunload", Event.stop);
>
> Give it a whirl, I have no idea if that will work;
>
> ---
>
> http://positionabsolute.net
>
> On Mar 18, 5:27 am, Vladimir Tkach <tea...@gmail.com> wrote:
>
> > try to use beforeunload event
>
> > 2009/3/18 Karlson <azagnio...@gmail.com>
>
> > > 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
>
> > --
> > Best Regards,
> > Vladimir Tkach
>
> > +972-54-7574166
> > tea...@gmail.com
>
> >http://teamco-anthill.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---