Need some code to enable new tab
4 posters
Page 1 of 1
Need some code to enable new tab
I need this code so that when its clicked it opens in a new tab, can anyone help?
- Code:
<a href="http://volkszone.com"><img src="http://i1299.photobucket.com/albums/ag78/Bangernomics/Red.jpg"></a>
Last edited by Bangernomics on January 31st 2013, 11:57 pm; edited 1 time in total
Bangernomics- Forumember
- Posts : 144
Reputation : 1
Language : English
Location : UK
Re: Need some code to enable new tab
You add a target="_blank" like this below:
- Code:
<a href="http://volkszone.com"><img src="http://i1299.photobucket.com/albums/ag78/Bangernomics/Red.jpg" target="_blank"></a>
Re: Need some code to enable new tab
Hi,
Either that, or add target="_blank" to the originating link/form which landed in this "Photo Gallery Redirect" page.
- Code:
<script type="text/javascript">window.open('http://google.com');</script>
or
- Code:
<a href="http://google.com" target="_blank">click here</a>
- Code:
<form action="http://google.com" target="_blank">
<input type="submit" />
</form>
or
- Code:
<meta http-equiv="refresh" content="5; URL=javascript:window.open('http://google.com','_parent');">
Re: Need some code to enable new tab
runawayhorses wrote:You add a target="_blank" like this below:
- Code:
<a href="http://volkszone.com"><img src="http://i1299.photobucket.com/albums/ag78/Bangernomics/Red.jpg" target="_blank"></a>
Tried this but it doesn't open in a new tab
- Code:
<a href="http://volkszone.com"><img src="http://i1299.photobucket.com/albums/ag78/Bangernomics/Red.jpg" target="_blank"></a>
Bangernomics- Forumember
- Posts : 144
Reputation : 1
Language : English
Location : UK
Re: Need some code to enable new tab
Can you tell me how I should add it to my code? sorry but its not clear to me and I know nothing about code
CJ11™ wrote:Hi,Either that, or add target="_blank" to the originating link/form which landed in this "Photo Gallery Redirect" page.
- Code:
<script type="text/javascript">window.open('http://google.com');</script>
or
- Code:
<a href="http://google.com" target="_blank">click here</a>
- Code:
<form action="http://google.com" target="_blank">
<input type="submit" />
</form>
or
- Code:
<meta http-equiv="refresh" content="5; URL=javascript:window.open('http://google.com','_parent');">
- Code:
<a href="http://ourbulgariaforum.com"><img src="http://i280.photobucket.com/albums/kk178/netsniperthefirst/biba.jpg"></a>
Bangernomics- Forumember
- Posts : 144
Reputation : 1
Language : English
Location : UK
Re: Need some code to enable new tab
Here you go, I needed to add the blank tag after the url of the site not the image, this will work for you now:
Here's your other link not sure which one you wanted:
- Code:
<a href="http://volkszone.com" target="_blank"><img src="http://i1299.photobucket.com/albums/ag78/Bangernomics/Red.jpg"></a>
Here's your other link not sure which one you wanted:
- Code:
<a href="http://ourbulgariaforum.com" target="_blank"><img src="http://i280.photobucket.com/albums/kk178/netsniperthefirst/biba.jpg"></a>
Re: Need some code to enable new tab
Bangernomics wrote:runawayhorses wrote:You add a target="_blank" like this below:
- Code:
<a href="http://volkszone.com"><img src="http://i1299.photobucket.com/albums/ag78/Bangernomics/Red.jpg" target="_blank"></a>
Tried this but it doesn't open in a new tab
- Code:
<a href="http://volkszone.com"><img src="http://i1299.photobucket.com/albums/ag78/Bangernomics/Red.jpg" target="_blank"></a>
Bangernomics wrote:Can you tell me how I should add it to my code? sorry but its not clear to me and I know nothing about codeCJ11™ wrote:Hi,Either that, or add target="_blank" to the originating link/form which landed in this "Photo Gallery Redirect" page.
- Code:
<script type="text/javascript">window.open('http://google.com');</script>
or
- Code:
<a href="http://google.com" target="_blank">click here</a>
- Code:
<form action="http://google.com" target="_blank">
<input type="submit" />
</form>
or
- Code:
<meta http-equiv="refresh" content="5; URL=javascript:window.open('http://google.com','_parent');">
- Code:
<a href="http://ourbulgariaforum.com"><img src="http://i280.photobucket.com/albums/kk178/netsniperthefirst/biba.jpg"></a>
Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead! Since this is your third reminder, you have received a warning. |
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Need some code to enable new tab
Thank you
Bangernomics- Forumember
- Posts : 144
Reputation : 1
Language : English
Location : UK
Re: Need some code to enable new tab
Topic Solved & Locked |
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» A possible code to enable WYSIWYG mode for certain forums?
» When i paste a long code via [code][/code] the page expands
» How do i enable ChatBox?
» enable HTML
» How To Enable IP-Checking?
» When i paste a long code via [code][/code] the page expands
» How do i enable ChatBox?
» enable HTML
» How To Enable IP-Checking?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum