Re: Accessing to html file elements
"Cyol" wrote in message
news:EB72C75E-8A49-49FB-998E-9393A4E42472@microsoft.com
> There is a html file in some place,
> for example in this location
> http://www.bsite.com/page.html
> I'd like to use
> var d=document;
> var o=d.getElementById("ElId");
> But how can I bind the document (i.e. object d)
> and file http://www.bsite.com/page.html ?
Create an iframe, set its src= to your URL, wait until it loads, then
access its document.
Note that it would only work if the main page is loaded from the same
domain. For security reasons, it is not possible for a page from one
domain to inspect pages from another.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
date: Sun, 13 Jul 2008 11:40:41 -0400
author: Igor Tandetnik