--> Open Multiple Webpages Using a single Link | Experience Lab - Online business creation and development guide for bloggers and startups

Open Multiple Webpages Using a single Link

I have been using a simple JavaScript call function to open multiple sites on a single click. This function declares several URL’s in its bo...

linking multiple sitesI have been using a simple JavaScript call function to open multiple sites on a single click. This function declares several URL’s in its body and once the function is called either through a hyperlink or an image, the click triggers the function and all URLs declared open up in new browser tab window. I have been using this simple trick on my EntreCard traffic service and you can surely check out that page as a demo. Lets learn how to create such a link.

Create List of URLs

Write down all website URLs by using the simple code below,

<!-- MBT MULTIPLE LINKS CODE -->
<script type='text/javascript'>
//<![CDATA[


    function LINKNAME() {
    var http = "LINK1";
    var win1 = window.open(http);
    var http = "LINK2";
    var win1 = window.open(http);
    var http = "LINK3";
    var win1 = window.open(http);
    var http = "LINK4";
    var win1 = window.open(http);
   
    }

//]]>
</script>

 

  • Replace LINKNAME with anything you wish to write. Replace it with any name you may remember say for example "multiplelinks"
  • Replace Link1,2,3,4 with your URLs. A URL/link should contain http:// For example: http://www.mybloggertricks.com
  • To add another link simply add the following code above }

   var http = "LINK5";
    var win1 = window.open(http);

Once done then add the code to blogger by following these steps:

  1. Go To blogger > Design > Edit HTML
  2. Search for </head>
  3. Paste the large code above just above </head>
  4. Save your template.

Create a Hyperlink or Image Link

Now there are two ways in which you can open these sites. You can either trigger them all using a simple text link or you can use a cute image as I did on the demo page.

Text Link Method:

Use this code anywhere on your post editor or sidebar to make the link appear which when clicked will open multiple/several sites


<a rel="nofollow" href="javascript:LINKNAME()">link text</a>

 

Outcome:

Link 1 Click it carefully! :)

Make sure that LINKNAME matches in this code and the previous Javascript I shared above. If you have written a different name for it then keep both names same for the above code and this one.

Replace link text with anything you wish to write to display the link name.

Image Link Method:

<a rel="nofollow" href="javascript:LINKNAME()"><img src="Image Link" /></a>

 

In this case all steps are same except that now you need to add an image instead of displaying link text. Kindly replace Image Link with the URL of your uploaded image.

Outcome:

Click it carefully! :)

 

When to use this method?

You may make use of opening several websites using a single link only if you are running a directory or if you want to share several links with your users but you don't want to directly link them. It is a great SEO method as well because Google allows you too keep the number of links to at most 100 per page but what if you want to link 1000 sites on a single page? Then this method comes to your rescue. I hope you find it helpful. Do let me know if you needed any help. Good night buddies!:>

COMMENTS

Name

Affiliate Marketing,12,Announcement,34,Bing,9,Bitcoin,38,blog,7,Blogger Resources,42,Blogger Templates,4,blogger tricks,156,Blogging ethics,70,Blogging tips,198,Bugs and Errors,34,Business,9,Copyright Violation,9,CSS and HTMLTricks,95,Designs,8,drop down menu,7,eBook,12,Email Marketing,7,Events,30,Facebook,30,Facebook tricks,49,Google,157,Google AdSense,42,Google Analytics,7,Google Plus,51,Google Plus Tricks,38,Guest Posts,112,home,2,How To,77,Internet,1,JSON Feeds,25,Kitchen Recipes,2,Label Based Sitemap Themes,1,Make Money Online,108,Marketing,16,MBT Blogger Templates,7,Menus,1,News,146,Pages,1,Posts,10,presentations,15,Responsive,10,Reviews,7,SEO,307,Settings,6,Shortcode,15,Sitemap Themes,1,Social Media,155,Technology,7,Templates,1,Tips,2,Tools,1,Traffic Tips,80,Video,19,Web Designing,62,web hosting,18,Webmaster Tools,97,Widgets,199,wordpress,26,
ltr
item
Experience Lab - Online business creation and development guide for bloggers and startups: Open Multiple Webpages Using a single Link
Open Multiple Webpages Using a single Link
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJBiwexquyiSeU7mibPvOWkVTIm3AOeBgq2bZTvZVY6wZyOJblcGQcwHjHgRGGU-O5UxSo23uLI0B29Xyr697UnZHoxIvudRE-cZBE_v5rIRrJUY4Chwxhi8vV1rhhynO74jhYq8-qy6E/?imgmax=800
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJBiwexquyiSeU7mibPvOWkVTIm3AOeBgq2bZTvZVY6wZyOJblcGQcwHjHgRGGU-O5UxSo23uLI0B29Xyr697UnZHoxIvudRE-cZBE_v5rIRrJUY4Chwxhi8vV1rhhynO74jhYq8-qy6E/s72-c/?imgmax=800
Experience Lab - Online business creation and development guide for bloggers and startups
https://www.experiencelab.info/2011/09/open-multiple-webpages-using-single-link.html
https://www.experiencelab.info/
https://www.experiencelab.info/
https://www.experiencelab.info/2011/09/open-multiple-webpages-using-single-link.html
true
2959477579779989044
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy