Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Can a button link to 2 new browser windows?
Old 09-18-2005, 11:30 PM Can a button link to 2 new browser windows?
novagolonka's Avatar
Novice Talker

Posts: 5
Trades: 0
Hi,

Just wanted to know if when using "open browser window" you can have one button link to 2 new windows?

I tried setting two seperate behaviors and it didn't work. It only allows one of them to work.


Thanks,

Nova
novagolonka is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-19-2005, 11:41 PM
Skilled Talker

Posts: 62
Trades: 0
Cut 'n Paste-style (if you so fancy)...

Javascript functions set in the header:
Code:
<script type="text/javascript">
function initWins(urlOne,urlTwo)
{
window.open(urlOne,windowOne,config='left=50,top=120,height=570,width=950,toolbar=1,menubar=1,scrollbars=1,resizable=1,location=1,directories=0,status=1')
window.open(urlTwo,windowTwo,config='left=100,top=100,height=590,width=900,toolbar=1,menubar=1,scrollbars=1,resizable=1,location=1,directories=0,status=1')
}
</script>
Within your document:
Code:
<input type="button" value="Your Button's Name..." onClick="javascript:initWins('http://www.google.com','http://www.yahoo.com');" />
You'll want to set the configuration of each new window as appropriate, of course, but yes - it's definitely possible to open two windows with one click (but you may want to reconsider this behavior from a user-friendliness standpoint).
__________________

Please login or register to view this content. Registration is FREE
danlefree is offline
Reply With Quote
View Public Profile Visit danlefree's homepage!
 
Reply     « Reply to Can a button link to 2 new browser windows?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09937 seconds with 12 queries