Jeff McKay wrote:
You are correct - I am seeing the HMFO() inside a href. But I don't
understand what you
mean by "will invoke the method". What method? If I am the one parsing
this html page, what
do I do with this HMFO in order to find out where the link leads?
Here's an example you can try out for yourself. Create a html page
with the following:
<html>
<head>
<title>test</title>
<script type = "text/javascript">
function HMFO()
{
alert("hello world");
}
</script>
</head>
<body>
<a href = "javascript
: HMFO()">click me</a>
</body>
</html>
When I say it will invoke the method, I mean when you click on the
link, it will actually call the function, in this case HMFO. If you
are parsing this html page, you would have to find the associated
function and parse its statements. While you're doing so, you can
(attempt) to find where the link goes _if_ there is any statement that
does so. But as you can see in this example, the link doesn't
necessarily go anywhere.