By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,543 Members | 2,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,543 IT Pros & Developers. It's quick & easy.

Open multiple URLs

P: n/a
I would like to click on a URL of a html document that will open several URLs at
once for me.

Does someone have an example of a html document that will do this?
Jul 23 '05 #1
Share this Question
Share on Google+
26 Replies


P: n/a
"Howard Brazee" <ho****@brazee.net> wrote in message
news:ci**********@peabody.colorado.edu...
I would like to click on a URL of a html document that will open several URLs at once for me.

Does someone have an example of a html document that will do this?


Really?

<html>
<head>
<title>openURLs.htm</title>
<script type="text/javascript">
function Googles() {
var http = "http://www.Google.com/";
var win1 = window.open(http);
var win2 = window.open(http);
var win3 = window.open(http);
}
</script>
</head>
<body>
<a href="javascript:Googles()">Googles</a>
</body>
</html>
Jul 23 '05 #2

P: n/a

On 22-Sep-2004, "McKirahan" <Ne**@McKirahan.com> wrote:
I would like to click on a URL of a html document that will open several

URLs at
once for me.

Does someone have an example of a html document that will do this?


Really?

<< Attached file: 14462.htm (383 bytes) >>


I clicked on this attachment, and it opened my browser with a page with a link.
I clicked on that link and got three separate Google Windows. What I would
really like is to open the three windows automatically and close the first one.
And I want my Google Windows to

Looking at the code, I see the following:
function Googles() {
var http = "http://www.Google.com/";
var win1 = window.open(http);
var win2 = window.open(http);
var win3 = window.open(http);

How do I modify the code so that when I click on this bookmark, the only new
windows I see are the following?
http://www.Google.com/
http://www.yahoo.com/
http://www.ask.com/
Jul 23 '05 #3

P: n/a
"Howard Brazee" <ho****@brazee.net> wrote in message
news:ci**********@peabody.colorado.edu...

On 22-Sep-2004, "McKirahan" <Ne**@McKirahan.com> wrote:
I would like to click on a URL of a html document that will open
several URLs at
once for me.

Does someone have an example of a html document that will do this?
Really?

<< Attached file: 14462.htm (383 bytes) >>


I clicked on this attachment, and it opened my browser with a page with a

link. I clicked on that link and got three separate Google Windows. What I would really like is to open the three windows automatically and close the first one. And I want my Google Windows to

Looking at the code, I see the following:
function Googles() {
var http = "http://www.Google.com/";
var win1 = window.open(http);
var win2 = window.open(http);
var win3 = window.open(http);

How do I modify the code so that when I click on this bookmark, the only new windows I see are the following?
http://www.Google.com/
http://www.yahoo.com/
http://www.ask.com/


How about this?

<html>
<head>
<title>openURLz.htm</title>
</head>
<body>
<script type="text/javascript">
window.open("http://www.yahoo.com/");
window.open("http://www.ask.com/");
location.href = "http://www.Google.com/";
</script>
</body>
</html>
Jul 23 '05 #4

P: n/a
On Wed, 22 Sep 2004 18:33:29 GMT, McKirahan <Ne**@McKirahan.com> wrote:

[snip]
How about this?

<html>
<head>
<title>openURLz.htm</title>
</head>
<body>
<script type="text/javascript">
window.open("http://www.yahoo.com/");
window.open("http://www.ask.com/");
location.href = "http://www.Google.com/";
</script>
</body>
</html>


The first two statements will be blocked in most modern browsers,
including IE6 SP2.

Mike
Please trim your quotes.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #5

P: n/a

On 22-Sep-2004, "McKirahan" <Ne**@McKirahan.com> wrote:
How about this?

<< Attached file: 14465.htm (289 bytes) >>


Opera gets a blank screen.
FireBird opens up Google and nothing else.

I didn't test with any other browsers.
Jul 23 '05 #6

P: n/a
"Howard Brazee" <ho****@brazee.net> wrote in message
news:ci**********@peabody.colorado.edu...

On 22-Sep-2004, "McKirahan" <Ne**@McKirahan.com> wrote:
How about this?

<< Attached file: 14465.htm (289 bytes) >>


Opera gets a blank screen.
FireBird opens up Google and nothing else.

I didn't test with any other browsers.


Don't you mean FireFox nit FireBird?

I guess it only works under older IE; I'm using IE5.5.

Here's another version that opens three equal size windows (in IE).

<html>
<head>
<title>openURLx.htm</title>
<script type="text/javascript">
var urls = new Array;
urls[0] = "http://www.Google.com/";
urls[1] = "http://www.yahoo.com/";
urls[2] = "http://www.ask.com/";
var wide = screen.availWidth * 0.33;
var high = screen.availHeight;
moveTo(0,0);
resizeTo(wide,high);
var what = "menubar=yes,scrollbars=yes,toolbar=yes,status=yes ";
what += "width=" + wide + ",height=" + high + ",top=0,left=";
var win1 = open(urls[1],"w1",what+wide);
var win2 = open(urls[2],"w2",what+(wide+wide));
location.href = urls[0];
focus();
</script>
</head>
<body>
</body>
</html>
Jul 23 '05 #7

P: n/a

On 22-Sep-2004, "McKirahan" <Ne**@McKirahan.com> wrote:
Opera gets a blank screen.
FireBird opens up Google and nothing else.

I didn't test with any other browsers.
Don't you mean FireFox nit FireBird?


Old habits die hard.
I guess it only works under older IE; I'm using IE5.5.

Here's another version that opens three equal size windows (in IE).

<< Attached file: 14467.htm (675 bytes) >>


No change in what happens with these browsers. Both are set up as tabbed
browsers, I would like to click on that button and pull up 3 tabs.

Actually, what I will be doing will be to click on a page with the attached
file. I want wednesday.html to open today's links.

Jul 23 '05 #8

P: n/a
Howard Brazee wrote:
I would like to click on a URL of a html document that will open several
URLs at once for me.


<http://w3.org/TR/html4/present/frames.html>
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #9

P: n/a
On Wed, 22 Sep 2004 19:54:52 GMT, Howard Brazee <ho****@brazee.net> wrote:

[snip]
No change in what happens with these browsers. Both are set up as
tabbed browsers, I would like to click on that button and pull up 3 tabs.
Predicted in my previous post.
Actually, what I will be doing will be to click on a page with the
attached file. [...]


This group is text-only group. Do not add attachments. If you need to post
code, either copy it into your post (wrapping long code manually), or
preferably, place it online and supply a URL.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #10

P: n/a
In article <ci**********@peabody.colorado.edu>, ho****@brazee.net enlightened
us with...
I would like to click on a URL of a html document that will open several URLs at
once for me.

Does someone have an example of a html document that will do this?


Not cross-browser that won't die with popup blockers, no.

Any workaround will quite possibly not work well with tabbed browsers,
either. Many users of tabbed browsers like to middle-click on links to open
them in a new tab. Unless your users requested this multiple-page link, it's
probably a Bad Idea.
If they did request it, find out what browsers you have to support and get
the workaround, if available, for it. This often means having your users
disable blocking or putting your site in the allowed sites list.

You've seen solutions posted, but none of them will work if your users have
good blockers.

--
--
~kaeli~
Do cemetery workers prefer the graveyard shift?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #11

P: n/a

On 22-Sep-2004, kaeli <ti******@NOSPAM.comcast.net> wrote:
Not cross-browser that won't die with popup blockers, no.

Any workaround will quite possibly not work well with tabbed browsers,
either. Many users of tabbed browsers like to middle-click on links to open
them in a new tab. Unless your users requested this multiple-page link, it's
probably a Bad Idea.
If they did request it, find out what browsers you have to support and get
the workaround, if available, for it. This often means having your users
disable blocking or putting your site in the allowed sites list.

You've seen solutions posted, but none of them will work if your users have
good blockers.


That's too bad. I have a page that opens a html depending on the day of the
week, but what I want is to have each day open several web pages - for my
personal browsing. I can create bookmark folders for each day and have my
browser open all bookmarks in a folder, but I was looking for a one click thing.
Jul 23 '05 #12

P: n/a
In article <ci**********@peabody.colorado.edu>, ho****@brazee.net enlightened
us with...

That's too bad. I have a page that opens a html depending on the day of the
week, but what I want is to have each day open several web pages - for my
personal browsing. I can create bookmark folders for each day and have my
browser open all bookmarks in a folder, but I was looking for a one click thing.


If it's just for you, use one of the other solutions and turn off your popup
blocker. McKirahan's solution should work fine in IE with blocking turned
off.

And if it's just for you, why are you testing in multiple browsers, anyway?
:p

--
--
~kaeli~
Do not taunt Happy Fun Ball!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #13

P: n/a

On 23-Sep-2004, kaeli <ti******@NOSPAM.comcast.net> wrote:
If it's just for you, use one of the other solutions and turn off your popup
blocker. McKirahan's solution should work fine in IE with blocking turned
off.

And if it's just for you, why are you testing in multiple browsers, anyway?
:p


I use two browsers. My work hasn't upgraded their BlueZone Terminal emulator
to the latest version which should be compatible with Opera, so I can't use
Opera when I want to connect to the mainframe. But I like Opera better than
Firebird, and it is my default browser (and I paid for it).

Still, I can be persuaded to switch between the two.
Jul 23 '05 #14

P: n/a
I turned off blocking pop-ups.

With Opera the following works the way I want:
<HTML>
<!--Subject: Re: Open multiple URLs-->
<head>
<title>openURLz.htm</title>
</head>
<body>
<script type="text/javascript">
window.open("http://www.yahoo.com/");
window.open("http://www.ask.com/");
location.href = "http://www.Google.com/";
</script>
</body>
</html>
With FireBird, instead of creating new tabs, it creates new windows, but that
may be a setting in FireBird.

Now I have to decide how badly I want this script, and find out what FireBird
setting might be making extra windows (I *never* want extra windows). Do I
want this script badly enough to put up with pop-ups while browsing?
Jul 23 '05 #15

P: n/a
In article <cj**********@peabody.colorado.edu>, ho****@brazee.net enlightened
us with...


With FireBird, instead of creating new tabs, it creates new windows, but that
may be a setting in FireBird.


I re-read your original post, and though I'm not sure if it's a solution for
you, Netscape 7, based on Mozilla/Gecko, like Firebird, allows me to bookmark
a SET of pages/tabs.
For example, one of my bookmarks opens 3 tabs - one to Fark, one to my
intranet page, and one to Google. All at the same time, in the same window.

I'm not sure if that helps you, since you were talking about it being when
you click on a specific link.

--
--
~kaeli~
The definition of a will?... (It's a dead giveaway.)
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #16

P: n/a
In article <cj**********@peabody.colorado.edu>, ho****@brazee.net enlightened
us with...

With FireBird, instead of creating new tabs, it creates new windows, but that
may be a setting in FireBird.


window.open will always make a new window, not a tab.
That's one reason why tabbed browser users (gecko-based, mostly) hate it. ;)

AFAIK, there is no way to make a new tab. Yet.
--
--
~kaeli~
The definition of a will?... (It's a dead giveaway.)
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #17

P: n/a

On 24-Sep-2004, kaeli <ti******@NOSPAM.comcast.net> wrote:
window.open will always make a new window, not a tab.
That's one reason why tabbed browser users (gecko-based, mostly) hate it. ;)

AFAIK, there is no way to make a new tab. Yet.


Interesting that Opera opened new tabs in my test, but FireBird opened new
windows.
Jul 23 '05 #18

P: n/a

On 24-Sep-2004, kaeli <ti******@NOSPAM.comcast.net> wrote:
I re-read your original post, and though I'm not sure if it's a solution for
you, Netscape 7, based on Mozilla/Gecko, like Firebird, allows me to bookmark
a SET of pages/tabs.
For example, one of my bookmarks opens 3 tabs - one to Fark, one to my
intranet page, and one to Google. All at the same time, in the same window.

I'm not sure if that helps you, since you were talking about it being when
you click on a specific link.


My problem is, that I have a Javascript that uses the day of the week to open a
page called monday.html, tuesday.html, etc. How can I change this to open
bookmarks? I don't think I can, I have to hard code URLs into my page.
Jul 23 '05 #19

P: n/a
In article <cj*********@peabody.colorado.edu>, ho****@brazee.net enlightened
us with...

On 24-Sep-2004, kaeli <ti******@NOSPAM.comcast.net> wrote:
I re-read your original post, and though I'm not sure if it's a solution for
you, Netscape 7, based on Mozilla/Gecko, like Firebird, allows me to bookmark
a SET of pages/tabs.
For example, one of my bookmarks opens 3 tabs - one to Fark, one to my
intranet page, and one to Google. All at the same time, in the same window.

I'm not sure if that helps you, since you were talking about it being when
you click on a specific link.


My problem is, that I have a Javascript that uses the day of the week to open a
page called monday.html, tuesday.html, etc. How can I change this to open
bookmarks? I don't think I can, I have to hard code URLs into my page.


I dunno...

But...I found this Firefox extension.

I don't know if you meant Firefox when you said Firebird...

http://www.pryan.org/mozilla/site/TheOneKEA/tabprefs/

Looks like it makes even window.open open in tabs for Firefox.

--
--
~kaeli~
If that phone was up your a$$, maybe you could drive a
little better!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #20

P: n/a

On 24-Sep-2004, kaeli <ti******@NOSPAM.comcast.net> wrote:
I dunno...

But...I found this Firefox extension.

I don't know if you meant Firefox when you said Firebird...
Old habits die hard. That was its old name.
http://www.pryan.org/mozilla/site/TheOneKEA/tabprefs/

Looks like it makes even window.open open in tabs for Firefox.


I installed it, checked it, but it didn't seem to change my javascript effect.
Jul 23 '05 #21

P: n/a
In article <cj**********@peabody.colorado.edu>, ho****@brazee.net enlightened
us with...

On 24-Sep-2004, kaeli <ti******@NOSPAM.comcast.net> wrote:
I dunno...

But...I found this Firefox extension.

I don't know if you meant Firefox when you said Firebird...


Old habits die hard. That was its old name.
http://www.pryan.org/mozilla/site/TheOneKEA/tabprefs/

Looks like it makes even window.open open in tabs for Firefox.


I installed it, checked it, but it didn't seem to change my javascript effect.


I can read. I swear.

From the page:
The next major release of Tabbrowser Preferences, v0.7, will include
functionality from the Window-Q extension, by rue, that will allow it to
capture the use of the JavaScript window.open() function and open it as
desired. It will also allow page source to be viewed in a tab instead of a
separate window, and it will also allow bookmarks to be left-clicked and
opened in new tabs appropriately.

Looks like we have to wait one more version.
Sorry.

--
--
~kaeli~
He had a photographic memory that was never developed.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #22

P: n/a
kaeli wrote:
In article <cj**********@peabody.colorado.edu>, ho****@brazee.net enlightened
us with...

With FireBird, instead of creating new tabs, it creates new windows, but that
may be a setting in FireBird.


window.open will always make a new window, not a tab.
That's one reason why tabbed browser users (gecko-based, mostly) hate it. ;)

AFAIK, there is no way to make a new tab. Yet.


Tabbrowser Extensions <url:
http://white.sakura.ne.jp/~piro/xul/...nsions.html.en />

There is a "Single Window Mode" which forces new windows to be opened in tabs
instead.

Plus a whole lot more.

It is, in my not so humble opinion, _the_ must-have extension for Gecko-based
browsers.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #23

P: n/a
In article <41***************@agricoreunited.com>, gw*****@agricoreunited.com
enlightened us with...

Tabbrowser Extensions <url:
http://white.sakura.ne.jp/~piro/xul/...nsions.html.en />

There is a "Single Window Mode" which forces new windows to be opened in tabs
instead.

Plus a whole lot more.

It is, in my not so humble opinion, _the_ must-have extension for Gecko-based
browsers.


It doesn't work for me.
I installed it, then nothing would load. Pages all stuck on "loading" and
never actually loaded.

I wonder if it has something to do with the fact that I use a proxy at
work...

--
--
~kaeli~
Those who get too big for their britches will be exposed in
the end.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #24

P: n/a
kaeli wrote:
In article <41***************@agricoreunited.com>, gw*****@agricoreunited.com
enlightened us with...

Tabbrowser Extensions <url:
http://white.sakura.ne.jp/~piro/xul/...nsions.html.en />

There is a "Single Window Mode" which forces new windows to be opened in tabs
instead.

Plus a whole lot more.

It is, in my not so humble opinion, _the_ must-have extension for Gecko-based
browsers.
It doesn't work for me.
I installed it, then nothing would load. Pages all stuck on "loading" and
never actually loaded.


Are you using Firefox or Mozilla? I must admit, I haven't tested the extension in
Mozilla, I just assumed it would work since it's documented as working in Netscape
7, Mozilla and Firefox (I've personally tested it on FF 0.9, 0.9.1, 0.9.2, 0.9.3
and 1.0PR).
I wonder if it has something to do with the fact that I use a proxy at
work...


I have a proxy configured at home, Tabbrowser Extensions work fine there. They also
work okay at work, where I have no proxy configured.

Not sure why it didn't work for you, sorry.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #25

P: n/a
In article <41***************@agricoreunited.com>, gw*****@agricoreunited.com
enlightened us with...

Are you using Firefox or Mozilla?
Firefox 1.0 PR
I wonder if it has something to do with the fact that I use a proxy at
work...


I have a proxy configured at home, Tabbrowser Extensions work fine there. They also
work okay at work, where I have no proxy configured.

Not sure why it didn't work for you, sorry.


That's okay.
Something fudged up. When I tried to uninstall it, it froze up and I had to
kill the running Firefox process in task manager, too.

It may be conflicting with other extensions I have installed or something. I
have another extention for tabbed browsing from mozdev.

The known bugs list was a little scary, too...

--
--
~kaeli~
To steal ideas from one person is plagiarism; to steal from
many is research.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #26

P: n/a
I would like to open 6 tabs in Firefox in one window from my desktop.
Everything I read in here is for HTML, which is kinda different.

First, any thoughts on opening multiple tabs from the desktop?
Second, how does one do it?
Third, why is he bothering us with this dreck?

lonp

Jul 23 '05 #27

This discussion thread is closed

Replies have been disabled for this discussion.