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* <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.

Search Discussions

  • Aaron Schmitz at Mar 27, 2012 at 11:31 am
    the first one is working for me

    --
    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.
  • Aaron Schmitz at Mar 27, 2012 at 11:33 am
    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 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.
  • Yan shi at Mar 27, 2012 at 2:16 pm
    ok.its done.ya.matters of browser.i use chrome 17.

    2012/3/27 Aaron Schmitz <a.schmitz703@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 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.

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

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMar 27, '12 at 11:28a
activeMar 27, '12 at 2:16p
posts4
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Aaron Schmitz: 2 posts Yan shi: 2 posts

People

Translate

site design / logo © 2022 Grokbase