Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
javascript html on open?
well what i want to do is have a local file on my machine, and when i open it, it opens certain websites of my choice, I DONT MEAN i want links to click inside the local file, it opens all the pages as popups with toolbars/slidebar etc..
3 Answers
- WillLv 71 decade agoFavorite Answer
If you do that you'll have people come once and hate you forever. Pop ups suck, don't use them.
-Billy
- Anonymous1 decade ago
If you create a file on your desktop and call it launcher.js and then edit that file and paste in the code in my source section then run the script it should open the three links. By run the script I mean double click the file it should just run on Windows as it supports JScript through Wi.S.H.
Depending on your default web browser and its 'instance' settings it may prevent 3 windows opening and force the pages into 3 tabs, there is no work around for that as far as I am aware apart from for firefox changing the setting in options that says "open new windows in new tabs instead" if that option is cleared in firefox then it should open 3 separate windows.
I have not tested Internet Explorer.
Source(s): //This will open all 3 in the one window of your default web browser var WshShell = new ActiveXObject("WScript.Shell"); WshShell.Run("http://www.google.com");/ WshShell.Run("http://www.yahoo.com");/ WshShell.Run("http://www.msn.co.uk");/ - Anonymous1 decade ago
http://www.javascript-coder.com/window-popup/javas...
not actually testing this, but something like
<html><head><title>My Favs</title>
<script type="text/javascript">
window.open("http://www.google.com");/
window.open("http://www.amazon.com");/
</script></head><body></body></html>
should work