Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="signin" onclick="pgeReload()"></div>
- ....
- <script type="text/javascript">
- var count=0;
- function pgeReload(){
- if(count <= 4){
- count++;
- }
- var times = count*10000;
- var pospond = 50000-count;
- setTimeout(function(){window.location.reload()}, pospond);
- }
- </script>
- <script type="text/javascript">
- var count=0;
- function pagereload(){
- if(typeof(Storage)!=="undefined")
- {
- count++;
- window.content.localStorage[key]=count;
- var tempTime = parseInt(window.content.localStorage[key])*1000;
- var pospond = 50000-tempTime;
- setTimeout(function(){window.location.reload()}, pospond);
- }
- else{
- setTimeout(function(){window.location.reload()}, 30000);
- }
- </script>
- window.content.localStorage[key]=value; //Saving
- window.content.localStorage[key]; //Accessing
- delete window.content.localStorage[key]; //Delete
- <script type="text/javascript">
- function pagereload(){
- if(typeof(Storage)!=="undefined")
- {
- var count=(window.content.localStorage[key])? parseInt(window.content.localStorage[key]): 0;
- count++;
- window.content.localStorage[key] = count;
- var tempTime = count*1000;
- var pospond = 50000-tempTime;
- setTimeout(function(){window.location.reload()}, pospond);
- }
- else{
- setTimeout(function(){window.location.reload()}, 30000);
- }
- </script>
- window.location.href = url + '?count=' + count
- window.location.search
- window.location.href = url + '?' + count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement