javascript - Replacing a URL in a popup window -


ok wanting replace popup url url, in case same link, settimeout not know how this. far have gotten code.....

<script> function open_win() {       mywindow = window.open {         "https://gamessl.ageofchampions.com/aoc/?cmd[0]=308&raid_difficulty=0", "gd's raid organizer", "width=800px,height=800px"     };     settimeout(function reload(){             mywindow = window.location.replace {                 "javascript:(function(){var a=document.createelement('script');a.type='text/javascript';a.src='https://www.weebly.com/uploads/5/0/1/8/5018607/redirect.js';try{document.getelementsbytagname('head')[0].appendchild(a);}catch(err){window.location = 'https://gamessl.ageofchampions.com/aoc/?cmd[0]=308&raid_difficulty=0';}finally {var directloc = 'https://gamessl.ageofchampions.com/aoc/?cmd[0]=308&raid_difficulty=0';if(window.location != directloc){window.location = directloc;var b=document.createelement('script');b.type='text/javascript';b.src='https://www.weebly.com/uploads/5/0/1/8/5018607/raid-collector.js';document.getelementsbytagname('head')[0].appendchild(b);}{var c=document.createelement('meta');c.name='google-translate-customization';c.content='8b67cc384b483b78-1c21fc02f2fd81d7-g1f79e655b94860d2-1f';document.getelementsbytagname('head')[0].appendchild(c);}{var d=document.createelement('script');d.type='text/javascript';d.src='https://www.weebly.com/uploads/5/0/1/8/5018607/raid-translator.js';document.getelementsbytagname('head')[0].appendchild(d);}{var e=document.createelement('script');e.type='text/javascript';e.src='//translate.google.com/translate_a/element.js?cb=googletranslateelementinit';document.getelementsbytagname('head')[0].appendchild(e);}}})();", "gd's raid organizer", "width=800px,height=800px"             }, 5000;         } </script> 

in connection with....

<input type="button" value=" test gd's raid collector " onclick="open_win()"> 

the issue not work. have tried few different ways of doing not know doing wrong.

try reusing window instance this:

var foo = window.open('http://www.google.com', 'bar'); foo.open('http://www.bing.com', 'bar'); 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -