Jump to content
php.lv forumi

jQuery - pārlūka aizvēršanas events


ArnisR

Recommended Posts

Var noķert brīdi, kad pārlūks veras ciet (kad tiek pamesta lapa).

1. Ja tas normāli strādātu tad nevienu no uzmācīgam reklāmas lapām nevarētu normāli aizvērt.

2. Visi Online skripti to izmantotu.

JS beidz savu darbību ar brauzera aizveršanu, tieši drosības apsvērumu dēļ.

 

P.S. pec tava koda būtu jastrādā arī

$(window).unload(function() {
   for(var i=1; i==0; i++){
     alert("bezgalīgais cikls");
   } 
});

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...