Javascript problem with submit buttons placed close to each other

Discussion in 'JavaScript' started by sar420, Jun 30, 2011.

Thread Status:
Not open for further replies.
  1. #1
    Please have a look at the page here. Below is a screenshot where the problem lies:

    [​IMG]

    As you can see, there are two buttons which have been called by a javascript here. Both have been coded to redirect to different pages. However, when I hover my mouse on the Regret button it automatically highlights both buttons and when I click regret it redirects to the page where the Confirm button is supposed to redirect.

    Can't figure out where the problem is. Any help will be much appreciated. Basically each button should redirect only to where it is supposed to as I've specified in the Javascript code.
     
    sar420, Jun 30, 2011 IP
  2. FilmFiddler

    FilmFiddler Greenhorn

    Messages:
    54
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    23
    #2
    Try using the href:

    <li>
    <input type="button" value="Confirm" onclick="window.location.href='http://audiquattrofinal.tigersportsmarketing.com/attending/index.html';">
    </li><br>
        
    <li>
    <input type="button" value="Regret" 
    onclick="window.location.href='thankyou.html';">
    </li>
    
    Code (markup):
     
    FilmFiddler, Jul 1, 2011 IP
  3. sar420

    sar420 Notable Member

    Messages:
    3,147
    Likes Received:
    212
    Best Answers:
    0
    Trophy Points:
    230
    #3
    Thanks..actually I had got it resolved and asked the mods to closer this thread. Cheers for replying anyway
     
    sar420, Jul 1, 2011 IP
Thread Status:
Not open for further replies.