all groups > dotnet jscript > october 2006 >
You're in the

dotnet jscript

group:

Read contents of a web page


Read contents of a web page Kuldeep
10/24/2006 7:15:06 PM
dotnet jscript:
Hi All,

Is there a way to collect or browse through the contents of a web page
through a script?

Any leads on this regard would be very helpful

Regards,
Kuldeep

Re: Read contents of a web page Brian Williams
1/18/2007 11:06:53 AM
You could create a method and pass the from object to it.

<script language="javascript" type="text/javascript">
function LoopAllControls(oPage)
{
with(oPage)
for(var i=0; i<all.length; i++)
with(all[i])
{
window.status=tagName + " : " + id + " " + innerText;
}
</script>

Or this

<script language="javascript" type="text/javascript">
function LoopAllControls(oPage)
{
with(oPage)
for(var i=0; i<all.length; i++)
with(all[i]) if(tagName=="INPUT")
{
window.status=tagName + " : " + id + " " + innerText;
}
}
</script>

Hope this helps...

Regards,
Brian K. Williams

[quoted text, click to view]

AddThis Social Bookmark Button