• 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&#8242;;” />
    ———————————————————-

Viewing 3 replies - 1 through 3 (of 3 total)
  • <INPUT type=”button” value=”Funny Video’s” onClick=”window.open(‘http://funniest-vids.com/?p=42&#8217;)”>

    Try that =)

    Tej

    Thread Starter viralbytes

    (@viralbytes)

    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)

    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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Link to new window’ is closed to new replies.