I've just started using XPath queries in php and while a lot is very self-explanatory I'm wordering if it's possible to get the values of an onclick() function.
An example
<a id="moreButton" onclick="showMore('#content','/page/2');">Show More</a>
The best I have come up with is //a[@id='moreButton']/@onclick
which returns showMore('#content','/page/2');
Can I further refine it to only return /page/2
or will I just have to use php to parse what I have?