Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

function (onclick/javascript?) to open more than one tab with different pages on one single click?

1,440 views
Skip to first unread message

Criz Collins

unread,
Jan 3, 2009, 3:25:17 AM1/3/09
to
Hi there!

is there any possibility to use on a webpage, maybe with javascript or
something, to open two or more tabs with different content on one
single click?

Criz.

David McRitchie

unread,
Jan 3, 2009, 10:13:21 AM1/3/09
to
"Criz Collins" > is there any possibility to use on a webpage, maybe with javascript or

> something, to open two or more tabs with different content on one
> single click?

JAVASCRIPTS :: Open Multiple Urls Each In Its Own Window From One Click
http://www.bigresource.com/JAVASCRIPTS-open-multiple-urls-each-in-its-own-window-from-one-click-ySSyQMW8.html


Here's something interesting:
ShareTabs Opens Multiple Links in Tabs [URL Hacks] | The Online Life Knowledge
http://www.jaimeviniciusbarros.com/2008/12/sharetabsopensmultiplelinksintabsurlhacks/

and while not what you seek, it is a solution for users to be able to open
multiple links in a selection (need not be a contiguous selection) with "Linky" extension.
(Has an annoying limitation of 99 links that can be selected on list of selected links)
https://addons.mozilla.org/firefox/425

--
HTH,
David McRitchie, extensions I use are briefly documented on my site
Firefox Custom: http://www.mvps.org/dmcritchie/firefox/firefox.htm

David McRitchie

unread,
Jan 3, 2009, 10:27:20 AM1/3/09
to
> "Criz Collins" > is there any possibility to use on a webpage, maybe with javascript or
>> something, to open two or more tabs with different content on one
>> single click?


First place I looked for the answer was on my kws.htm page, but didn't see it
here it is.

Search that targets both Google and AltaVista into two separate Tabs(/windows) (old FatJohn 2005-10-28)
This would allow you to do two searches from the location bar with a keyword shortcut.

javascript:void(window.open('http://www.google.com/search?q=%s'));
void(window.open('http://www.altavista.com/web/results?q=%s'))

as a link from a web page
<a href="javascript:window.open('kws.htm');window.open('../excel/excel.htm');">open two links</a>

David McRitchie

unread,
Jan 3, 2009, 11:47:01 AM1/3/09
to

> as a link from a web page
> <a href="javascript:window.open('kws.htm');window.open('../excel/excel.htm');">open two links</a>

That should have included VOID so that the urls on your original tab won't appear
to be messed up:

Test <a href="javascript:window.open('tabs.htm');window.open('../ie/bookmarklets.htm');void(0);">open two links</a>

0 new messages