Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-25-2005, 04:19 PM
WebProWorld Member
 

Join Date: Jun 2005
Posts: 77
bobby9101 RepRank 0
Default Javascript new tab

How do i set my links to open in new tabs and windows?
Reply With Quote
  #2 (permalink)  
Old 07-25-2005, 08:04 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

target="_new" in your <a> tag will give you a new window. I'm not sure how it works with tabbed browsing, though.
Reply With Quote
  #3 (permalink)  
Old 07-26-2005, 10:41 AM
WebProWorld Member
 

Join Date: Jun 2005
Posts: 77
bobby9101 RepRank 0
Default

any way to do it to more than one at once?
Reply With Quote
  #4 (permalink)  
Old 07-27-2005, 05:10 AM
WebProWorld New Member
 

Join Date: Jul 2005
Location: England
Posts: 2
nikkoss RepRank 0
Default Javascript new tab

You would have to use javascript to open two or more windows;

<script language="JavaScript">
<!--
function newWindows() {
win1=window.open('http://www.webproworld.com','win1','status=1,scrollbars=1 ,toolbar=1,resizable=1,width=800,height=600');
win2=window.open('http://www.google.com','win2','status=1,scrollbars=1,tool bar=1,resizable=1,width=800,height=600');
}
//-->
</script>

Then in your link;

New Windows
__________________
Perfect IT
Reply With Quote
  #5 (permalink)  
Old 07-27-2005, 10:49 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

What he said.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

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

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


Search Engine Optimization by vBSEO 3.2.0