Firefox Support for ONCLICK?

Discussion in 'Web Design & Coding' started by madmatt, Sep 14, 2006.

  1. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    As many of you know I do not use or have Firefox installed.

    I am working on a poll script for a site. I wanted to use a text link for the "Vote" button.

    Code:
    <a href="#" onclick="submit();">Vote!</a>
    
    This works perfectly in IE6 and IE7. But I have been told it does not work in FF 1.5.

    Why? How can I fix it without having to use an actual button?

    A cookie to the first one who can provide a working solution. Thank you.
     
  2. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Code:
    onclick="javascript:submit();"
    Should work.
     
  3. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Your best is to install FireFox, and open up the JavaScript debugging terminal and see what it is complaining about, that way you can fix it yourself. I gotta go, bus to catch.