Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.
Why would you be doing this? If your link is the only thing in the list item, why do you need a click handler on the list item itself?
To actually answer your question, I believe the getElementsByTagName function returns an array, even if it only finds one element. Therefore, you would need to do something like:
<li onclick="window.open((this.getElementsByTagName('a'))[0].href);"><a href="testpage.html">Go to testpage</a></li>Even if that works, you'd be better off attaching the handler to the link itself. If you return false from the link's "onclick" handler, the link won't actually work.
I still don't think you should be doing this. It's also considered somewhat bad practice to use inline javascript like that. Take a look at Ben Nolan's Behaviour library.
1 to 4 of 4