Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="utf-8">
- <title>Naga-refresh</title>
- </head>
- <body>
- <script>
- var stop=1;
- function go(e){
- if(e==0 || stop==1 ){
- frame=document.getElementById("FRAME");
- adr=document.getElementById("adr");
- frame.src=adr.value;
- frame.reload;
- }
- }
- function refresh(){
- button=document.getElementById("button-refresh");
- if(stop==1){
- stop=0;
- button.innerHTML="Start refresh";
- return;
- }
- if(stop==0){
- stop=1;
- button.innerHTML="Stop refresh";
- }
- }
- window.setInterval("go(1);", 10000);
- </script>
- site : <input id="adr" value="https://naga.com/user-profile/285090/feed" size="100%" /> <button onclick="go(0)" >Go</button><button id="button-refresh" onclick="refresh()">Stop refresh</button>
- <iframe id="FRAME" src="https://naga.com/user-profile/285090/feed" height="100%" width="100%">
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement