I am using the jsdom module to load in a large HTML document, and am
using jQuery to navigate the DOM. I have a case where I need to access
the function body of an event listener (onclick). The event listener
was added in the source HTML:
<a href="#" onclick="javascript:window.open('
http://restOfURL>');
return false;"></a>
The onclick attribute of the DOM element is undefined.
btw: what I really want to do is get the URL, so if there is some
other way to do that, such would meet my needs.
tia.