Open multiple page or tab with single link in html. Many times you may require to open multiple pages if you want to give related and dependent information. Even now a days many website are opening multiple pages with single link to display advertisement too. You can directly use hyper link text with some tag to implement this.
We can provide a link in our web page to move directly to another page by <a href> tag.
Which will appear as : your text to appear as link
But here you require to open up a multiple pages or tab with single link, for giving additional information, and making your clients to come across the content that you want to make them read once. Here is the way:
Open multiple page or tab with single link in html
To Open multiple tabs or window with a single link, write the below written code in your html body.
Let us have an example to Open multiple page with single link in html, we would open following three pages:
By adding onclick event and window.open property in <a href> tag, you can open multiple page. Here is the example to do this:
Output of Open multiple page or tab with single link in html:
For Internet explorer this code will open multiple new windows, while for Google chrome and Mozilla Firefox it will open new tabs. You must allow browser to open popup for this website, while testing.
I hope that the above post will make your work easy to open multiple pages with click on single link. Do comment for your feedback, problems and valuable suggestion