Internet Explorer 7 does not support a built-in command to open multiple tabs at startup. Although you can specify multiple URL’s as default homepages, this might not be what you want.
A solution to open several tabs at once for only one time, can be made with Windows Scripting Host, or wscript.
First, create a new text document with Notepad or some other text editor and add the following content:
var navOpenInBackgroundTab = 0x1000;
var oIE = new ActiveXObject("InternetExplorer.Application");
oIE.Navigate2("http://www.itexperience.net");
oIE.Navigate2("http://www.google.com", navOpenInBackgroundTab);
oIE.Navigate2("http://www.whatismyip.org", navOpenInBackgroundTab);
oIE.Visible = true;
Save the file as launchie7.js (so change the extension from *.txt to *.js) to your C:\ drive
To launch Internet Explorer with multiple tabs, run the following command from Start – Run:
wscript.exe C:\launchie7.js
Of course, if you chose another destination to save your launchie7.js, you should specify that specific path.
I’m trying to script some tasks each morning and many of these tasks are run through a browser. I’ve tried to use this script but if I add more than 4 total tabs, it gives the following error:
Script: c:\MyScripts\ietest.js
Line: 8
Char: 1
Error: Unspecified Error
Code: 80004005
Source: (null)
naver0x(Quote)
Great thank you.
Jeppen(Quote)
Joe,
that’s one of the webpages that open when you copy-paste my script. Feel free to change the URL whatismyip.org to http://www.amazon.com if you like :)
Christian
Christian(Quote)
Result – what is my IP.?? what’s this!?
Joe(Quote)
Yihuu!
Klaus(Quote)
Thanks! Just what I needed.
ændrük(Quote)