
定义和用法
documentURI 属性设置或返回文档的位置。
语法
documentObject.documentURI
实例
实例
xmlDoc=loadXMLDoc("books.xml");
document.write("Document location: " + xmlDoc.documentURI);
document.write("Document location: " + xmlDoc.documentURI);
输出:
Document location: /try/demo_source/books.xml
