35 users online (0 members and 35 guests)  

Thread: onClick problem


  Results 1 to 2 of 2

Related

  1. Onclick menu - Help    Forum: Javascript Forum
    Replies: 10
  2. onClick and <iframe>    Forum: HTML Forum
    Replies: 4
  3. Onclick Listbox    Forum: Javascript Forum
    Replies: 2
  4. onclick help    Forum: Javascript Forum
    Replies: 3
  5. onClick on php?    Forum: PHP Forum
    Replies: 1
  1. #1
    Glenvern's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Norfolk, UK.
    Posts
    112

    onClick problem

    I have created an onClick external link but cant get it exit the frame.
    When I put in the target="_new" instruction it throws up a script error - any idea how to get round this..?

    I am using

    <input type=button value="Utilities" onClick="location.href='http://www.website.com/'">

    other than being stuck in the frame the link works fine..
    Glenvern

  2. #2
    Glenvern's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Norfolk, UK.
    Posts
    112

    Re: onClick problem

    Problem sorted thanx....

    I solved it by adding "window.open()." before the "location.href="
    works for me....
    Glenvern



Tags for this Thread