Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > click() method and Firefox

Reply
Thread Tools

click() method and Firefox

 
 
Aziz
Guest
Posts: n/a
 
      02-10-2005
hi,

with the following anchor objeck: <a id="ref" href.......>...</a>
this code:
document.getElementById("ref").click();
works on IE 6 but not on Firefox 1.0
the error message is: document.getElementById("ref").click is not a
function..
I'll be happy if you could tell me why and how to solve?

Thanks
 
Reply With Quote
 
 
 
 
Lee
Guest
Posts: n/a
 
      02-10-2005
Aziz said:
>
>hi,
>
>with the following anchor objeck: <a id="ref" href.......>...</a>
>this code:
>document.getElementById("ref").click();
>works on IE 6 but not on Firefox 1.0
>the error message is: document.getElementById("ref").click is not a
>function..
>I'll be happy if you could tell me why and how to solve?


Instead, use this code:

location="whatever the href value of that link happens to be";

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
method def in method vs method def in block Kyung won Cheon Ruby 0 11-21-2008 08:48 AM
What the diff between a virtual method and an inheirited method jlopes C++ 5 11-19-2004 09:43 PM
I see no difference in an inheirited non-virtual method and an inheirited virtual method jlopes C++ 7 11-19-2004 07:47 PM
Difference between Delete method and RemoveRow method CW ASP .Net 0 04-01-2004 01:07 AM
Help with a utility class and having a method call another method from within Ian Python 2 09-06-2003 03:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57