I want to load two web pages, and using data contained on them create and display a document in the current browser. But I must have a basic misunderstanding of the document object.
This is how I [I]think
//load the other page:
var doc1=document.open(“file:///C:/Java/JavaScript/Samples/page1.htm”);
//print data from it:
document.write(doc1.title);
What I get is the title of the current document object, not the title of the document I loaded into doc1. The [B]lastUpdated
I also tried using a second window:
//load the other page:
var doc2=window.open(“file:///C:/Java/JavaScript/Samples/page1.htm”);
//print data from it:
document.write(doc2.document.title);
This just breaks. Is it possible to load two other web pages and access the data on them?
?