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 5 of 5
  1. #1
    New Coder
    Join Date
    May 2009
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    click For javascript in mozilla

    In the Javascript i have Written one Function in that function I have to call another function click() It is not working in mozilla..
    The code i have written:
    document.getElementById('Someid').click();

    Thanks In Adv...

  • #2
    Regular Coder Deacon Frost's Avatar
    Join Date
    Feb 2008
    Location
    Between the Lines
    Posts
    279
    Thanks
    31
    Thanked 4 Times in 4 Posts
    Quote Originally Posted by pradeepg459 View Post
    In the Javascript i have Written one Function in that function I have to call another function click() It is not working in mozilla..
    The code i have written:
    document.getElementById('Someid').click();

    Thanks In Adv...
    ...What?

    Wait...

    What?

    What's... what's not working?

    Is that the right question?

  • #3
    New Coder
    Join Date
    May 2009
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts
    the Onclick function is not working in mozilla for the code what i have written above

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    You haven’t written any “onclick” function. Or at least I’m not seeing any. The “click()” syntax you wrote reminds me a bit of jQuery but you actually need jQuery for it to work.

    Search the internet for “onclick” and you’ll find millions of examples on how to write an onclick event in JS.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts


  •  

    Posting Permissions

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