hi, Ok so assuming the visitor of this website is using firefox, what is the html coding or a way in dreamweaver to make it op[en a hyperlink in a new tab?
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › How to make hyperlink open a new tab?
Featured Sponsors
Recent Reviews
-
I honestly love this cooler, but I think I'm gonna move on to another one soon, it just looks... A bit to bland compared to other flaming red (literally) coolers on the market.
-
Metro 2033 is one of the greatest FPS games ever made. Although not usually recognized as such, due to the horrible state the gaming industry is in, it succeeds largely on its storytelling,...
-
This is an update of the original Fractal Design Arc Midi. The solid left panel has been replaced by a panel with a plexiglass window and the top USB ports are now USB-3.0. Let me state at the...
-
I've used this headset extensively for MAG on PS3. The sounds were wonderful, the mic was crisp, and the ability to adjust peoples voice volume is absolutely invaluable. For $100 ( or less ) this...
-
The Pros The reason this card is one of the better non-Tahiti 7870s is because of Gigabyte's custom PCB. Gigabyte took the 7870 and replaced it's memory chips with Hynix memory so they perform a...
How to make hyperlink open a new tab?
post #2 of 11
1/14/09 at 7:33am
- spartacus
- 4.0ghz
-


- Joined: Jun 2008
- Location: Ohio
- Posts: 1,492
- Rep: 154 (Unique: 138)
- Trader Rating: 20
- Select All Posts By This User
Quote:
|
New Windows with HTML Forcing a link to open in a new window is simply a matter of adding an additional attribute to the link's code. Suppose you have a straightforward link to a page. The visitor sees something like... Visit Fontstuff today! Here's the code... <p>Visit <a href="http://www.fontstuff.com">Fontstuff</a> today!</p> Now let's modify the link to force it to open the linked page in a new window. What the visitor sees is no different... Visit Fontstuff today! ...but when they click the link a new browser window opens displaying the linked page inside. Here's the code... <p> Visit <a href="http://www.fontstuff.com" target="_blank">Fontstuff</a> today! </p> The addition of the TARGET attribute to a hyperlink lets you dictate where the linked page opens. To open a new page I have used target="_blank" but there are others... target="_blank" Opens the linked page in a new window. target="_self" Opens the linked page in the same window. This is the default for ordinary pages and doesn't need to be specified. It has a use when working with frames. target="_parent" Opens the linked page in the parent frame in a frames page. target="_top" Opens the linked page in a full (i.e. top level) window when used in frames pages. This one is useful for letting a linked page 'break out' of a frame. In fact, you can insert any window name that you might have defined elsewhere. Using the JavaScript technique outlined below you could create a new window with a particular name, then use this method to cause all subsequent linked pages to open in it. (Find out how to do this and check out the demo!) Setting a Default If you want all the links on your page to open in a new window you don't have to modify every one. It's a simple matter to apply a default setting for the page so that all the links behave the same way. Here's how... Insert the following code... <base target="_blank"> ...into the header of your document's HTML (i.e. anywhere between the <head> and </head> tags but not inside any other pairs of tags already there). You can substitute "_blank" with one of the other names if appropriate. |
Got it from here
Will do a new window in IE, new tab in FF.
The Byte Mogul
(13 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| E8400 E0 @ 4.0Ghz, 1.216v | EP45-UD3P v1.1 | XFX GTX260 | 2x 2GB GSkill Pi Black |
| Hard Drive | OS | Monitor | Keyboard |
| 1x 250GB, PERC 6/i RAID5 4x F4 2TB | Windows 7 Professional x64 | Dell u2311h | $3 Microcenter Cheap-O |
| Power | Case | Mouse | |
| Antec TPN-750 | CM590 | Razer Deathadder | |
| View all | |||
The Byte Mogul
(13 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| E8400 E0 @ 4.0Ghz, 1.216v | EP45-UD3P v1.1 | XFX GTX260 | 2x 2GB GSkill Pi Black |
| Hard Drive | OS | Monitor | Keyboard |
| 1x 250GB, PERC 6/i RAID5 4x F4 2TB | Windows 7 Professional x64 | Dell u2311h | $3 Microcenter Cheap-O |
| Power | Case | Mouse | |
| Antec TPN-750 | CM590 | Razer Deathadder | |
| View all | |||
- REDHAMMER999
- 4.0ghz
-

- Joined: Jan 2008
- Location: Scotland, UK
- Posts: 1,107
- Rep: 47 (Unique: 45)
- Trader Rating: 2
- Select All Posts By This User
thanks. Repped
CENTURION 590
(13 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| Q6700 SLACQ (95W) @ 3.2GHz @ 1.3V | Gigabyte EP45-UD3P | ATI 4890 - 2GB | 4GB DDRII (1066MHz) - Corsair |
| Hard Drive | OS | Monitor | Power |
| 1TB SAMSUNG - 32MB cache | windows 7 pro RTM. | 30" Dell 3007 WFP | 720W OCZ EVOSTREAM |
| Case | Mouse | ||
| Centurion 590 | CYBER SNIPA(2400DPI/1200) | ||
| View all | |||
CENTURION 590
(13 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| Q6700 SLACQ (95W) @ 3.2GHz @ 1.3V | Gigabyte EP45-UD3P | ATI 4890 - 2GB | 4GB DDRII (1066MHz) - Corsair |
| Hard Drive | OS | Monitor | Power |
| 1TB SAMSUNG - 32MB cache | windows 7 pro RTM. | 30" Dell 3007 WFP | 720W OCZ EVOSTREAM |
| Case | Mouse | ||
| Centurion 590 | CYBER SNIPA(2400DPI/1200) | ||
| View all | |||
post #4 of 11
5/23/12 at 10:50am
- RealPVA
- Commodore 64
- Joined: May 2012
- Location: Los Angeles
- Post: 1
- Rep: 0 (Unique: 0)
- Select All Posts By This User
post #5 of 11
2/12/13 at 2:01pm
post #6 of 11
2/12/13 at 2:28pm
target="_blank" opens a link in a new tab for me. If it opens in a new window I think that it's because of the browser. Chrome, Firefox, Opera, IE10 all open in a new tab. For me a least.
My System
(16 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| i7 920 @ Stock | Asus P6T | ATI HD5870 | OCZ 6GB 1333mhz |
| Hard Drive | Optical Drive | Cooling | Cooling |
| Caviar Black 640GB | LG DVD Drive | Cm Hyper 212+ | Arctic Cooling Accelero Twin Turbo II |
| OS | Monitor | Monitor | Power |
| Windows 7 64bit | ASUS VW246H | Samsung 40inch LCD TV | Corsair HX850 |
| Case | |||
| CM 690 II Adavanced | |||
| View all | |||
My System
(16 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| i7 920 @ Stock | Asus P6T | ATI HD5870 | OCZ 6GB 1333mhz |
| Hard Drive | Optical Drive | Cooling | Cooling |
| Caviar Black 640GB | LG DVD Drive | Cm Hyper 212+ | Arctic Cooling Accelero Twin Turbo II |
| OS | Monitor | Monitor | Power |
| Windows 7 64bit | ASUS VW246H | Samsung 40inch LCD TV | Corsair HX850 |
| Case | |||
| CM 690 II Adavanced | |||
| View all | |||
post #7 of 11
2/12/13 at 2:59pm
- EduFurtado
- 4.0ghz
-


- Joined: Mar 2010
- Location: Wherever I may roam
- Posts: 2,370
- Rep: 173 (Unique: 139)
- Trader Rating: 7
- Select All Posts By This User
_blank Opens the linked document in a new window or tab depending on the browser or the browser's preferences for the user.
If you want to force, you would need to use javascript.
However, the target attribute is supported by every browser, whereas javascript can be disabled and many people have it disabled (or blocked by many reasons)
If you want to force, you would need to use javascript.
However, the target attribute is supported by every browser, whereas javascript can be disabled and many people have it disabled (or blocked by many reasons)
Room's silent warmer
(15 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| i5 750 @ 3.6 | P7P55 EVO | Gtx 670 DC2T | 8gb @1600 cas 9 @1.5v |
| Hard Drive | Optical Drive | Cooling | OS |
| crucial m4 256gb + 3tb seagate | none | venomous-X + 2 P/P yate loons @5v | 8 pro x64 + mint 14 cinnamon x32 |
| Monitor | Keyboard | Power | Case |
| PX2370 | random | Antec HPC-850 | BX-500 aerocool |
| Mouse | Mouse Pad | Audio | |
| CM Storm Spawn | QcK+ | Shure SRH 750DJ+FiiO E5 | |
| View all | |||
Room's silent warmer
(15 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| i5 750 @ 3.6 | P7P55 EVO | Gtx 670 DC2T | 8gb @1600 cas 9 @1.5v |
| Hard Drive | Optical Drive | Cooling | OS |
| crucial m4 256gb + 3tb seagate | none | venomous-X + 2 P/P yate loons @5v | 8 pro x64 + mint 14 cinnamon x32 |
| Monitor | Keyboard | Power | Case |
| PX2370 | random | Antec HPC-850 | BX-500 aerocool |
| Mouse | Mouse Pad | Audio | |
| CM Storm Spawn | QcK+ | Shure SRH 750DJ+FiiO E5 | |
| View all | |||
post #8 of 11
2/12/13 at 3:02pm
- ghostrider85
- Overclocker
-


- Joined: Nov 2011
- Location: Santa Ana, CA
- Posts: 5,717
- Rep: 228 (Unique: 183)
- Folding Team Rank: 1,983
-
Name Team Rank Points / May Work Units / May Ghostriderz85 1,983 465,888 / 0 177 / 0 - Select All Posts By This User
point at the hyperlink and press the scroll wheel.
Micro Black Box
(17 items) |
Mini Black Box
(12 items) |
My Dream Mini-ITX Rig
(18 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| intel Core i5 2500k | Maximus Gene-Z/Gen3 | MSI 6970 Lightning | Corsair Vengeance 2x 4GB |
| Hard Drive | Hard Drive | Hard Drive | Optical Drive |
| Corsair Force GT 2x 60GB | Corsair Force 3 2x 120GB | Western Digital Cavial Blue 500GB | LG Blu-ray Reader/Writer |
| Cooling | OS | Monitor | Keyboard |
| Corsair H100 | Windows 7 Pro | Westinghouse 40 inch 1080p LCD | Logitech K800 |
| Power | Case | Mouse | Audio |
| Corsair TX650M | Fractal Design Arc Mini | Logitech Anywhere MX | Logitech G930 |
| Other | |||
| Logitech C910 Webcam | |||
| View all | |||
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| Intel Core i5 3570k | Asrock Z77E-ITX | EVGA GTX 580 SC | Samsung 8GB DDR3 |
| Hard Drive | Cooling | OS | Keyboard |
| Samsung Series 830 128GB SSD | Cooler Master Gemin ii S524 | Windows 7 Home Premium | Logitech K800 |
| Power | Case | Mouse | Audio |
| SilverStone 600W | SilverStone SG08 | Logitech Anywhere Mouse MX | Sennheiser HD 558 |
| View all | |||
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| intel 3570k | asrock z77e-itx | evga gtx 680 4gb | samsung green ddr3 8gb |
| Hard Drive | Hard Drive | Cooling | Cooling |
| samsung 840 pro 128gb | western digital caviar blue 1tb | apogee drive ii | 2x alphacool nexxxos xt45 360mm |
| Cooling | OS | Monitor | Keyboard |
| gtx 680 waterblock | windows 7 home premium | asus vg248qe | logitech k800 |
| Power | Case | Mouse | Audio |
| silverstone sg08 built in 600w | silverstone sg08 | logitech performance mx | sennheiser pc 360 |
| Other | Other | ||
| custom sg08 pedestal/radiator case | reservoir, fittings, hoses, etc. | ||
| View all | |||
Micro Black Box
(17 items) |
Mini Black Box
(12 items) |
My Dream Mini-ITX Rig
(18 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| intel Core i5 2500k | Maximus Gene-Z/Gen3 | MSI 6970 Lightning | Corsair Vengeance 2x 4GB |
| Hard Drive | Hard Drive | Hard Drive | Optical Drive |
| Corsair Force GT 2x 60GB | Corsair Force 3 2x 120GB | Western Digital Cavial Blue 500GB | LG Blu-ray Reader/Writer |
| Cooling | OS | Monitor | Keyboard |
| Corsair H100 | Windows 7 Pro | Westinghouse 40 inch 1080p LCD | Logitech K800 |
| Power | Case | Mouse | Audio |
| Corsair TX650M | Fractal Design Arc Mini | Logitech Anywhere MX | Logitech G930 |
| Other | |||
| Logitech C910 Webcam | |||
| View all | |||
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| Intel Core i5 3570k | Asrock Z77E-ITX | EVGA GTX 580 SC | Samsung 8GB DDR3 |
| Hard Drive | Cooling | OS | Keyboard |
| Samsung Series 830 128GB SSD | Cooler Master Gemin ii S524 | Windows 7 Home Premium | Logitech K800 |
| Power | Case | Mouse | Audio |
| SilverStone 600W | SilverStone SG08 | Logitech Anywhere Mouse MX | Sennheiser HD 558 |
| View all | |||
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| intel 3570k | asrock z77e-itx | evga gtx 680 4gb | samsung green ddr3 8gb |
| Hard Drive | Hard Drive | Cooling | Cooling |
| samsung 840 pro 128gb | western digital caviar blue 1tb | apogee drive ii | 2x alphacool nexxxos xt45 360mm |
| Cooling | OS | Monitor | Keyboard |
| gtx 680 waterblock | windows 7 home premium | asus vg248qe | logitech k800 |
| Power | Case | Mouse | Audio |
| silverstone sg08 built in 600w | silverstone sg08 | logitech performance mx | sennheiser pc 360 |
| Other | Other | ||
| custom sg08 pedestal/radiator case | reservoir, fittings, hoses, etc. | ||
| View all | |||
post #9 of 11
2/13/13 at 1:28pm
Thanks for the quick assist guys. So it seems not until a universal browser support of C5 code will there be a _tab assignment for the target variable.
Yes it is only browser specific how a new window is handled. I too use the middle button "trick" but visitors to my client's site may not know this and I was looking for a way to force tabbed browsing on tab capable browsers. For now, new window it is for IE folks.
Yes it is only browser specific how a new window is handled. I too use the middle button "trick" but visitors to my client's site may not know this and I was looking for a way to force tabbed browsing on tab capable browsers. For now, new window it is for IE folks.
post #10 of 11
2/13/13 at 5:01pm
- EduFurtado
- 4.0ghz
-


- Joined: Mar 2010
- Location: Wherever I may roam
- Posts: 2,370
- Rep: 173 (Unique: 139)
- Trader Rating: 7
- Select All Posts By This User
Quote:
Originally Posted by overclockdotnet 
Thanks for the quick assist guys. So it seems not until a universal browser support of C5 code will there be a _tab assignment for the target variable.
Yes it is only browser specific how a new window is handled. I too use the middle button "trick" but visitors to my client's site may not know this and I was looking for a way to force tabbed browsing on tab capable browsers. For now, new window it is for IE folks.

Thanks for the quick assist guys. So it seems not until a universal browser support of C5 code will there be a _tab assignment for the target variable.
Yes it is only browser specific how a new window is handled. I too use the middle button "trick" but visitors to my client's site may not know this and I was looking for a way to force tabbed browsing on tab capable browsers. For now, new window it is for IE folks.
Like I said, if you really want to force new tabs to open, you could use javascript.
The safer solution would be to use javascript to open a new tab if possible, if not, opening a new window/tab with html
Room's silent warmer
(15 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| i5 750 @ 3.6 | P7P55 EVO | Gtx 670 DC2T | 8gb @1600 cas 9 @1.5v |
| Hard Drive | Optical Drive | Cooling | OS |
| crucial m4 256gb + 3tb seagate | none | venomous-X + 2 P/P yate loons @5v | 8 pro x64 + mint 14 cinnamon x32 |
| Monitor | Keyboard | Power | Case |
| PX2370 | random | Antec HPC-850 | BX-500 aerocool |
| Mouse | Mouse Pad | Audio | |
| CM Storm Spawn | QcK+ | Shure SRH 750DJ+FiiO E5 | |
| View all | |||
Room's silent warmer
(15 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| i5 750 @ 3.6 | P7P55 EVO | Gtx 670 DC2T | 8gb @1600 cas 9 @1.5v |
| Hard Drive | Optical Drive | Cooling | OS |
| crucial m4 256gb + 3tb seagate | none | venomous-X + 2 P/P yate loons @5v | 8 pro x64 + mint 14 cinnamon x32 |
| Monitor | Keyboard | Power | Case |
| PX2370 | random | Antec HPC-850 | BX-500 aerocool |
| Mouse | Mouse Pad | Audio | |
| CM Storm Spawn | QcK+ | Shure SRH 750DJ+FiiO E5 | |
| View all | |||
Return Home
Back to Forum: Web Coding
- How to make hyperlink open a new tab?
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › How to make hyperlink open a new tab?
Currently, there are 2356 Active Users
(796 Members and 1560 Guests)
Recent Discussions
- › [Official] 7870 Tahiti LE (XT) Owners Club 9 seconds ago
- › Final Decision Between these 3 Mechanical Keyboards! 13 seconds ago
- › [TV] HTC In Disarray: Staff Departures, Disastrous First, And... 23 seconds ago
- › 4th BOINC Pentathlon - May 5th - 18th, 2013 25 seconds ago
- › OCNix - Please Read (we need volunteers!) 30 seconds ago
- › [VC] First GeForce GTX 780 Review Leaks Out, Inno3D GTX 780 iChill... 31 seconds ago
- › [Planetside] Game Update 09 05.22.2013 42 seconds ago
- › Anyone having problems with vsync? 52 seconds ago
- › Congratulation AMD owner!! 57 seconds ago
- › Swiftech H220 Owners' Club 1 minute ago
View: New Posts | All Discussions
Recent Reviews
- › Cooler Master Hyper 212 EVO CPU Cooler (RR-212E-20PK-R1) by junhawng
- › Metro: Last Light - Standard Edition by boredgunner
- › Fractal Design Arc Midi R2 FD-CA-ARC-R2-BL-W Computer Case With... by Alan G
- › Wireless Stereo Headset by DoomDash
- › GIGABYTE Radeon HD 7870 GHz Edition GV-R787OC-2GD Video Card by VitalShot
- › Crucial Ballistix sport 16GB (2 x 8GB) 240-Pin DDR3 SDRAM DDR3 1600... by Fieldsweeper
- › Creative 70SB150000000 Sound Card by Fieldsweeper
- › ASUS PB Series PB278Q 27"" 5ms (GTG) WQHD Widescreen LED... by R3apR369
- › SilverStone Aluminum Body ATX Full Tower Computer Case TJ07B -... by R3apR369
- › Cooler Master HAF 922 RC-922M-KKN1-GP Black Steel + Plastic and... by Steve1300
View: More Reviews
New Articles
- › Rackmount Storage Devices for your mypccase by chriseddins
- › Online free image resizer by morgan0021
- › Maid Service Stroud by jacob5564
- › METRO 2033 STARTUP CRASH FIX WORKS by xiangelo
- › Why are DNS Servers Important? How to make... by exzacklyright
- › Titanium Backup Guide For Newbies by exzacklyright
- › How to install ADB (Android Debug Bridge) by exzacklyright
- › How to take ownership of a file, folder, or... by exzacklyright
- › How to disable the open file security warning... by exzacklyright
- › Clean and Make a USB Bootable Flash Drive for... by exzacklyright
View: New Articles | All Articles
Home | Reviews | Forums | Articles | My Profile
About Overclock.net | Join the Community | Advertise | Contact Us | All Staff
© 2013 Shogun Interactive Development Overclock.net is powered by Huddler Tech | FAQ | Support | Privacy | ToS | DMCA | Site Map
About Overclock.net | Join the Community | Advertise | Contact Us | All Staff
© 2013 Shogun Interactive Development Overclock.net is powered by Huddler Tech | FAQ | Support | Privacy | ToS | DMCA | Site Map




