jQuery unload() wont work.Help

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:[email protected] [email protected]
Phone:15242613529

the first one is working for me

which browser do you use?

ok.its done.ya.matters of browser.i use chrome 17.

2012/3/27 Aaron S. [email protected]


*Ըϲͬ!

ʯҾ
ϢѧԺ ϵӦ÷
Dalian NEUSOFT Institute of Information
й-԰·8
ʱࣺ116023
*Mail:[email protected] [email protected]
Phone:15242613529

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs