Ruby on Rails Tuesday, March 27, 2012

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:hlcfan.yan@gmail.com
Phone:15242613529

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment