Vattic
05-15-2008, 07:44 PM
I have an iframe and I am using the following to find the iframe:
var allTags, thisTag;
allTags = document.evaluate(
"//iframe[@ALLOWTRANSPARENCY='true']",
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);
As the page only ever has one iframe I don't know if this is the best way to do that but it works for now.
The problem is I want to have the iframes "scr" attribute value as a string.
Is this possible, and how?
Cheers.
var allTags, thisTag;
allTags = document.evaluate(
"//iframe[@ALLOWTRANSPARENCY='true']",
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);
As the page only ever has one iframe I don't know if this is the best way to do that but it works for now.
The problem is I want to have the iframes "scr" attribute value as a string.
Is this possible, and how?
Cheers.