Element.click() not working in Firefox

how do a JS code simulate a mouse click on “element_ID” gif button?

In IE element_ID.click() is working fine. Problem onlywith Firefox. Any work around?

— my JS code for onKeyDown event –

if(someConditionTrue) element_ID.click();

TIA.

Subject: element.click() not working in Firefox

No, that’s NOT your code. Post your ACTUAL code if you want help with this.

Subject: RE: element.click() not working in Firefox

further test shows that the problem related to Notes/FireFox related. =====JS in plain html working in IE/FF ==========



======= Notes JS not working ========

event: onKeyPressed of the last field.

code: doSomething(event);

Subject: element.click() not working in Firefox Solution

The solution is pretty much simple, instead rewriting the code etc… I created a text button with style: ‘no display’ and then attach the same @command([ToolRunAgent];“agent”). This way the newly added button wont be clicked unless called from the function.

Here is the url in detail http://mysite.verizon.net/sureshvkumar/myindex.htm

Hope this helps …

Subject: RE: element.click() not working in Firefox

I found the solution, its pretty much simple, instead of porting the code etc… I created a text button with style: no display and then attach the same @command([ToolRunAgent];“agent”). This way the newly added button wont be clicked unless from the function.

Here is the url in detail http://mysite.verizon.net/sureshvkumar/myindex.htm

Hope this helps others save their time…