Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Onclick does not work on Firefox

    Hi, does anybody know how to firefox deals with onclick mouse event. i am trying to use it but it wont work in firefox. please help

    Thanks

  • #2
    New Coder
    Join Date
    Nov 2004
    Location
    wisconsin
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what are you doing? using <a onclick="functionname()">click here</a>
    maybe posting your onclick code. most possibly it is code written for ie or incorrect code in your function.
    Can you commentate bowling?

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Heres the code im using

    onclick="location.href('file.html')"

    Also, what can i add to this so it the page opens to a new window.

    Thanks!

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,603
    Thanks
    0
    Thanked 645 Times in 635 Posts
    onclick="window.open('file.html')"
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •