Re: how to evaluate the functions in the script tag of an html document
naveen edupuganti <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hai
I have seen the examples, but i am not getting how
to get with my case . suppose i have a doucemnt for
the htmlpage. I need to evalute the functions in the
script tags and modify the dom with the result. And
one more thing is i need to extract the contens of the
anchor element. So how can i evaluate them.
<html>
<head>
<title>a title </title>
</head>
<script>
function doit()
{
alert("hai");
}
</script>
<body>
<p>text, <a
href="javascript:window.open('somepage.html');">text</a>,
...</p>
<script
type="text/javascript">document.write("<p>new
para</p>");</script>
</body>
</html>
So here how can i implement the functionlity for
document.write();
and window.open in the anchor element.
How can i do this from java
__________________________________________________________
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642