GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   html question (https://gfy.com/showthread.php?t=632000)

rafe43119 07-11-2006 07:09 AM

html question
 
Hi all,
if I want all the links on a page to open in a new window, whats the html code for that? currently, if someone clicks on a link on my site they leave the site to go to whatever they clicked. I'd like to set it up so that when they click something it just opens up in a new window. Thanks in advance for your help :upsidedow

gzus 07-11-2006 07:10 AM

a href="url" target=new

smutx 07-11-2006 07:14 AM

Code:

<a href="http://www.smutx.net" target="_blank">text here</a>

rafe43119 07-11-2006 07:20 AM

Thanks! do I have to enter that code for each individual link or is it something that I can just put at the top of the page and then every link automatically opens in a new window?

Fetish Gimp 07-11-2006 07:22 AM

Use base target.

gzus 07-11-2006 07:27 AM

i've never used that base target.. seems rather simple, and easy to use. rafe, if you have alot of links u want openin in a new window, i'd definatly say go with that base target, well it wouldnt hurt if u only had three links u wanted to open in a new window, but it you just need one link or so, the target tag is the way which i use fequently. its also good for iframes and such if you name your frames/new windows.

rafe43119 07-11-2006 07:33 AM

Quote:

Originally Posted by Fetish Gimp

Thats a great site, thanks for posting that link. Thats what I was looking for. I appreciate everyones help :thumbsup

VicD 07-11-2006 03:44 PM

http://www.w3schools.com/

Kimo 07-12-2006 02:12 AM

next time just google it


All times are GMT -7. The time now is 07:47 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123