Link to home
Start Free TrialLog in
Avatar of superquestions
superquestions

asked on

Opening 2 or more windows at once!

Isn't there a way to open two or more windows at once without html scripting (javascript, vbscript...)?

Something like...

<a href="first.html","second,html" target="_blank">Click this to open first.html in a new window and second.html in another new window without use of extra scripting</a>

And not like...

<a href="javascript:window.open('first.html','first',lotsofconfigurationstuff);window.open('second.html','second',lotsofconfigurationstuff)">Click this to open first.html in a new window and second.html in another new window without use of extra scripting</a>
Avatar of superquestions
superquestions

ASKER

Edited text of question
Edited text of question
Not possible.

If you decide to use JavaScript, you can save some space:
* open instead of window.open
* leave second parameter blank
* everything that should not be added to the window will not be added as long as you specify at least something else
* just naming a feature will be treated as yes.

So
window.open('first.html','first','height=70,width=300,toolbar=no,scrollbars=no,location=yes')
can be
open('first.html','','height=70,width=300,location')

Martin
If you use frames, you can open in two new frames, thus effectively openning two new windows.
ASKER CERTIFIED SOLUTION
Avatar of Theophilus
Theophilus

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Theophilus,
Hmmm, where did I see your answer before?  Oh wait!  Martin gave that answer!

superquestions:
I'm sure you know the right thing to do -- reject Theophilus's answer and let Martin or someone else answer.

For shame, Theophilus, you've been around here for a while.  You should know better than that.
You should use something like open('window.html','','height=90,width=600,location')