L
learnyourabc
For a webcrawler, you need to extract all links from the web page. For
normal html anchor tags or any of the src and href attribute on the
tag can be easily extracted using ihtmldocument.
What about links inside of javascript function like below??
<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??
normal html anchor tags or any of the src and href attribute on the
tag can be easily extracted using ihtmldocument.
What about links inside of javascript function like below??
<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??