Javascript problem firefox

Discussion in 'HTML & Website Design' started by link20me, Mar 5, 2009.

  1. #1
    can any one help me please this is not working in FIREFOX.

    <form>
    <input name="btn_remove" type="button" id="btn_remove" value="Open Now" onClick="document.location.href('http://forums.digitalpoint.com')">
    </form>

    thanks in advance.
     
    link20me, Mar 5, 2009 IP
  2. Vbot

    Vbot Peon

    Messages:
    107
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You don't need the form there. Just this part is enough.
     
    Vbot, Mar 5, 2009 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    1. The location object belongs to window, not document.
    2. The location object is not a function.
    3. All event handler names are lower case.

    Do this
    <input name="btn_remove" 
           type="button" 
           id="btn_remove" 
           value="Open Now" 
           onclick="window.location.href = 'http://forums.digitalpoint.com'">
    Code (markup):
    edit: :oops: A little slow.

    cheers,

    gary
     
    kk5st, Mar 5, 2009 IP
  4. link20me

    link20me Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you very much
     
    link20me, Mar 5, 2009 IP