473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Open multiple URLs

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
26 12339
"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

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
"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
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

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
"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

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
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
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
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

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
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

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
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
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
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

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

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
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

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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: jonathan.beckett | last post by:
Hi All, For the past few months I have been working on an open source Apache/PHP/MySQL content management system - and have recently made it available for download. It's still very much a...
4
by: Lev Altshuler | last post by:
Hi, When reading from email message using Net::POP3 (or other means), I need my perl program to open URLs incuded into the message. In other words, I need the program to click links in the...
0
by: Craig Westerman | last post by:
I'm trying to help a friend with this. When I run this everything is fine SELECT * from clicks, urls WHERE clicks.url=urls.url AND urls.description IS NULL The clicks table has 31 instances of...
1
by: Michael Ferrier | last post by:
Hi, I've used fopen() extensively to open web pages. I've found that there is a small minority of web pages that open fine in a browser, but are inaccessible using fopen(). Here are two such...
2
by: Geoff collishaw | last post by:
I'm trying to create a form where: (a) The user is given a list or Reporting Services reports in a listbox (b) When the user clicks on a button, then these reports are opened in SEPARATE windows....
0
by: Ayoa | last post by:
In my ASP.net project, I have a group of URLs (stored in a C# arraylist). I will like to send all of these URLs to new browser windows at the SINGLE click of a button. I know that clientside...
1
by: Ayoa | last post by:
In my ASP.net project, I have a group of URLs (stored in a C# arraylist). I will like to send all of these URLs to new browser windows at the SINGLE click of a button. I know that clientside...
15
Markus
by: Markus | last post by:
What i want to do: Get urls from the database and echo them out into a multiple columned table i.e. 4 pictures per row (recently uploaded table) MY problem is: I have, in my MySQL database,...
2
by: ShashiGowda | last post by:
Hey there i made a script to download all images from a web site but it runs damn slow though I have a lot of bandwidth waiting to be used please tell me a way to use urllib to open many...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.