jQuery unload() wont work.Help.

52 views
Skip to first unread message

yan shi

unread,
Mar 27, 2012, 7:27:36 AM3/27/12
to rubyonra...@googlegroups.com
jQuery unload() wont work.Help.

while i close the browser,i let it alert.so i write
$(window).unload(function() {
alert('bye');
});

but it wont work.
then.i write
window.onbeforeunload = function(){alert('bye')}

still dont work.need help.thx.

--
愿爱与喜悦心与你同在!

石岩敬上
大连东软信息学院 计算机系软件工程应用方向
Dalian NEUSOFT Institute of Information
中国-大连市软件园路8号
邮编:116023
Mail:hlcfa...@gmail.com

Aaron Schmitz

unread,
Mar 27, 2012, 7:31:22 AM3/27/12
to Ruby on Rails: Talk
the first one is working for me

Aaron Schmitz

unread,
Mar 27, 2012, 7:33:21 AM3/27/12
to Ruby on Rails: Talk
which browser do you use?

yan shi

unread,
Mar 27, 2012, 10:15:33 AM3/27/12
to rubyonra...@googlegroups.com
ok.its done.ya.matters of browser.i use chrome 17.

2012/3/27 Aaron Schmitz <a.schm...@googlemail.com>
which browser do you use?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply all
Reply to author
Forward
0 new messages