Not working scripts


Recommended Posts

I'm using a javascript on one of my games and I noticed that

javascript: var url='http://www.tribalwarsmap.com/traveltimes'; if (location.hostname.split('.')=='tribalwars') {url+='?world=';var world = location.hostname.split('.'); if (world=='classic') {url+='c1';} else {url+=world.substring(2);}; var query=''; if (window.main) {query = window.main.location.search.substring(1).split('&');} else {query = window.location.search.substring(1).split('&');}; var village=false; var dest=false; for(i=0;i

javascript: var url='http://www.tribalwarsmap.com/traveltimes'; if (location.hostname.split('.')=='tribalwars') {url+='?world=';var world = location.hostname.split('.'); if (world=='classic') {url+='c1';} else {url+=world.substring(2);}; var query=''; if (window.main) {query = window.main.location.search.substring(1).split('&');} else {query = window.location.search.substring(1).split('&');}; var village=false; var dest=false; for(i=0;i

Link to comment
Share on other sites

Popup blocker will block the window.open command if no click event is trigged at the same time.

If you are developing a extension for Maxthon, use Browser.newTab. see extension sdk for details.

If you are developing a website, please avoid that, or let user click a button to popup the webpage.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.