...

View Full Version : click For javascript in mozilla



pradeepg459
06-03-2009, 11:23 AM
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...

Deacon Frost
06-03-2009, 11:24 AM
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?

pradeepg459
06-03-2009, 11:27 AM
the Onclick function is not working in mozilla for the code what i have written above

VIPStephan
06-03-2009, 11:32 AM
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 (http://docs.jquery.com/Events/click) 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.

adios
06-03-2009, 06:58 PM
http://www.codingforums.com/showthread.php?t=7495#post34595



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum