Need some code to enable new tab Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
4 posters

    Need some code to enable new tab

    avatar
    Bangernomics
    Forumember


    Female Posts : 144
    Reputation : 1
    Language : English
    Location : UK

    Solved Need some code to enable new tab

    Post by Bangernomics January 31st 2013, 4:08 pm

    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
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Re: Need some code to enable new tab

    Post by runawayhorses January 31st 2013, 4:11 pm

    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>
    Sir Chivas™
    Sir Chivas™
    Helper
    Helper


    Male Posts : 6980
    Reputation : 457
    Language : EN, FR, ES
    Location : || CSS || HTML || Graphics Designs || Support ||

    Solved Re: Need some code to enable new tab

    Post by Sir Chivas™ January 31st 2013, 4:12 pm

    Hi,

    Code:
    <script type="text/javascript">window.open('http://google.com');</script>
    Either that, or add target="_blank" to the originating link/form which landed in this "Photo Gallery Redirect" page.

    Code:
    <a href="http://google.com" target="_blank">click here</a>
    or

    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');">
    avatar
    Bangernomics
    Forumember


    Female Posts : 144
    Reputation : 1
    Language : English
    Location : UK

    Solved Re: Need some code to enable new tab

    Post by Bangernomics January 31st 2013, 4:25 pm

    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>
    avatar
    Bangernomics
    Forumember


    Female Posts : 144
    Reputation : 1
    Language : English
    Location : UK

    Solved Re: Need some code to enable new tab

    Post by Bangernomics January 31st 2013, 4:57 pm

    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,

    Code:
    <script type="text/javascript">window.open('http://google.com');</script>
    Either that, or add target="_blank" to the originating link/form which landed in this "Photo Gallery Redirect" page.

    Code:
    <a href="http://google.com" target="_blank">click here</a>
    or

    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>
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Re: Need some code to enable new tab

    Post by runawayhorses January 31st 2013, 7:20 pm

    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:

    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>
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Solved Re: Need some code to enable new tab

    Post by SLGray January 31st 2013, 8:08 pm

    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 code


    CJ11™ wrote:Hi,

    Code:
    <script type="text/javascript">window.open('http://google.com');</script>
    Either that, or add target="_blank" to the originating link/form which landed in this "Photo Gallery Redirect" page.

    Code:
    <a href="http://google.com" target="_blank">click here</a>
    or

    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.



    Need some code to enable new tab Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Bangernomics
    Forumember


    Female Posts : 144
    Reputation : 1
    Language : English
    Location : UK

    Solved Re: Need some code to enable new tab

    Post by Bangernomics January 31st 2013, 11:56 pm

    Thank you Very Happy
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Solved Re: Need some code to enable new tab

    Post by SLGray February 1st 2013, 1:03 am

    Topic Solved & Locked



    Need some code to enable new tab Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.