Advertisement
STANAANDREY

dom_ex

May 24th, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function myFunction(a,b) {
  2.     return a*b;
  3. }
  4. window.alert("Do you really want to leave this page?");
  5. var y=100;
  6. function fun() {
  7. var a=document.getElementById("myid");
  8. var arr=a.childNodes;
  9. for (y=0;y<arr.length;y++)
  10. {arr[y].innerHTML="new"; } 
  11. }
  12.  
  13. setInterval(fun,5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement