munish
munish

Reputation: 4654

Naming my tab for opening multiple websites?

Hi I need some sciprt in any language but perhaps html or javascript or both because i can't understand them just a bit.you may use some bat files also if you want.

suppose the script opens three websites automatically :

http://www.gmail.com

http://www.google.com

http://www.yahoomail.co.in

then the tab of gmail can be according to me like MyGmail and the same goes for the rest of the websites, MyGoogle, MyYahooMail.

This is going to help me people and I know that it is going to be easy but I read some html and javascript 1 and half years ago but i can't remember anby of it.

Upvotes: 0

Views: 106

Answers (2)

Joseph Marikle
Joseph Marikle

Reputation: 78580

Another thing you can do is make a bookmark using the following code instead of a url

javascript:(function()window.open("http://www.gmail.com");window.open("http://www.google.com");window.open("http://www.yahoomail.co.in");})();

Upvotes: 1

ShankarSangoli
ShankarSangoli

Reputation: 69915

The following code is in JavaScript which will open the 3 sites on page load. I hope this helps you.

window.onload = function(){

    var MyGmail = window.open("http://www.gmail.com");
    var MyGoogle = window.open("http://www.google.com");
    var MyYahooMail = window.open("http://www.yahoomail.co.in");

};

Bookmarklet for the above script

javascript:(function(){window.open("http://www.gmail.com");window.open("http://www.google.com");window.open("http://www.yahoomail.co.in");})();

Upvotes: 2

Related Questions