Possible Duplicate:
Grabbing the href attribute of an A element
I would like to know how can we parse the event attributes using DOM php? For example
<body onload="javascript:PopWin('http://google.com')">
I need to get the link inside the onload event attribute. is it possible?
Not using preg_match and parse the entire html. using DOMDocument, we can get all other attributes like "src", "href" etc using getAttribute('src') or getAttribute('href'). Is there any similar way for getting the event attribute? Any link that comes in the event "onload" should be catched
Thanks.