Freepages-Help-L ArchivesArchiver > Freepages-Help > 2002-09 > 1032790902
From: Ken McInnes <>
Date: Tue, 24 Sep 2002 00:21:42 +1000
I disagree with Pat, - sorry Pat :( - as you are creating new
you probably do need:
photoWin.document.write('<html><head><title>' + pTitle +
However, I think that rather than just pass 'Photo' across as the
pTitle value, you could use more meaningful titles, perhaps the same
as the caption under each thumbnail.
Within the document.write statements the 'strings' can be broken up
into smaller pieces. For example the word 'body' could be broken up:
photoWin.document.write('<BODY BGCOLOR ...
photoWin.document.write('<BO'+'DY BGCOLOR ...
The + is a concatenation and hence when the content is written to the
new window.document it will be 'joined' and understood by the browser.
or you might need to break the other tags up as well.
I reckon there are probably easier ways to do the same thing in plain
nevetheless if it works in all browsers and it produces what you want,
then go for it.
Hope this helps,
Ringwood North VIC AUS
Open the gateway to my family history