Work too (the example given by me of a page with a button with xxx).
I think we should see the full html/js code to see where exactly is the problem as the error given by you hasn't sense (for what you are trying), at least for me
I'm going to edit this post, just to instruct you about some test just on this page
EDIT:
Curious, it works for input but not for a tags LOL
Ok, as I can do what I was going to do, just, in this page type in the url bar or copy and paste this:
javascript:alert(document.getElementsByTagName('a')[59].href)
What, as I said, is curious, you can click and "input", but not "a" link xD
I was going to tell you to use click to reply my quoting my message
EDIT again:
Nah, nothing :/
For "a" tag says click is not a funtion. But as you need it for a button, calling it by getting its id, instead tag, with what I said, should work.
Edited 5 time(s). Last edit at 11/30/2011 10:06PM by JohnHell.