pow67 <po***@optonline.net> writes:
I am assembling a muti-page report into one Web page using portions of
other Web pages. I can get one page to display using:
document.location.href = "http://www.eaglewoodhospital.com/reportpage1"
That construction will load the requested page in place of the current
one.
The location variable is a global variable. Some browsers, but not all,
make it available as a property of the document as well. For maximal
compatability, drop "document.".
Can someone tell me how I can add "...//reportpage2" and
"...//reportpage3" to make one continuous Web page displaying all three
report pages?
Not by changing the href. That just makes the next page load in place
of the first.
Am I using the correct javascript command with: document.location.href
No.
If you need to include more than one HTML-document in on page, you
should either use frames or do it on the server. As a last resort,
you can load the pages locally, and then extract the contents of
the bodies and combine these.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'