Forums

Link to new window (4 posts)

  1. viralbytes
    Member
    Posted 1 year ago #

    The code I'm currently using does not open a new window and I want it to. I think the HTML code is;

    target="_blank"

    but have no idea where to put this in the following code. I've tried all sorts of combinations and nothing seems to work ~ can someone help please.

    ---------------------------------------------------------
    <input type="button" value="Funny Video's" onclick="location.href='http://funniest-vids.com/?p=42';" />
    ----------------------------------------------------------

  2. tsg97
    Member
    Posted 1 year ago #

    <INPUT type="button" value="Funny Video's" onClick="window.open('http://funniest-vids.com/?p=42')">

    Try that =)

    Tej

  3. viralbytes
    Member
    Posted 1 year ago #

    tsg97... thanks, that's great. It opened up the page in a new window but not the actual website. Is there any way I can get it to open up the actual website / correct page.

    Sorry, my fault, I probably didn't make myself clear first time around.
    Viral... :o)

  4. tsg97
    Member
    Posted 1 year ago #

    Replace the bold, italic words below with the actual page you want to be opened.

    <INPUT type="button" value="Funny Video's" onClick="window.open('http://domain.com')">

    Hope that helps =)

    Tej

Topic Closed

This topic has been closed to new replies.

About this Topic