Here's the code:
javascript:(function()%7B%20window.open(' http://www.google.com/ ');%20%7D)();%20javascript:(function()%7B%20window.open(' http://www.magesy.me/ ');%20%7D)();
How can i get like a two or three second delay on the second tab opening?
Use setTimeout
(function()
{
window.open('www.google.com');
setTimeout(function() {
window.open('www.magesy.com');
}, 1000);
})();
Where 1000 is the timeout in milliseconds. To get a longer delay adjust this to 2000 (2 seconds)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.