<HEAD>
<SCRIPT language="JavaScript">
<!--hide
function newwindow()
{
window.open('jex5.htm','jav','width=300,height=200,resizable=yes');
}
//-->
</SCRIPT>
<A HREF="javascript:newwindow()" >Click Here!</A>
or
javascript function with the following
function newwindow()
{
.....
window.location('http://www.google.com')
}
<input type=button onclick="javascript:newwindow()" >Click Here!
How to extract the links from these javascript function??
Any help would be much appreciated. Can a crawler extract such links
and how??
Regular expressions are the best way to go. Store the entire HTML
contents in a string and search it for patterns matches. You can find
a ton of RegEx tutorials online.