G
Gene Wirchenko
Dear HTMLers and JavaScripters:
[Note crossposting.]
I do not know if my problem is HTML, JavaScript, my browser, my
text, though I doubt it is me. But who knows?
I have entered a text's code (HTML and JavaScript) which picks up
various pieces of browser data and writes them to another window
opened with
whOut=open("","output");
The HTML is generated with a series of whOut.document.write() calls:
<html><head><title>Output Window</title></head><body>
<h2>Browser Properties</h2>
*****value of navigator.appCodeName***** *****value of
navigotor.appName***** etc.<br>*****a couple more values*****
<h2>Window Properties</h2>
Frames: *****value of frames.length<br>
The data displays like this:
Browser Properties
navigator.appCodeName value...
Window Properties
Frames: 0
....
Note the blank line between the "Windows Properties" and "Frames"
lines. Note that there is no blank line between the "Browser
Properties" and values lines. Why not?
If I enter static HTML approximating the lines, I get the blank
line. If I generate static HTML approximating the lines, I get the
blank line.
What am I missing?
Is my text relying on browser-defined behaviour? (I am wondering
if I should have a paragraph tag there. The text does not have it,
but if I add it, it then works. I would like to understand what is
going on though.) Should I have the tag? If so, a pointer as to why
would be appreciated.
Sincerely,
Gene Wirchenko
[Note crossposting.]
I do not know if my problem is HTML, JavaScript, my browser, my
text, though I doubt it is me. But who knows?
I have entered a text's code (HTML and JavaScript) which picks up
various pieces of browser data and writes them to another window
opened with
whOut=open("","output");
The HTML is generated with a series of whOut.document.write() calls:
<html><head><title>Output Window</title></head><body>
<h2>Browser Properties</h2>
*****value of navigator.appCodeName***** *****value of
navigotor.appName***** etc.<br>*****a couple more values*****
<h2>Window Properties</h2>
Frames: *****value of frames.length<br>
The data displays like this:
Browser Properties
navigator.appCodeName value...
Window Properties
Frames: 0
....
Note the blank line between the "Windows Properties" and "Frames"
lines. Note that there is no blank line between the "Browser
Properties" and values lines. Why not?
If I enter static HTML approximating the lines, I get the blank
line. If I generate static HTML approximating the lines, I get the
blank line.
What am I missing?
Is my text relying on browser-defined behaviour? (I am wondering
if I should have a paragraph tag there. The text does not have it,
but if I add it, it then works. I would like to understand what is
going on though.) Should I have the tag? If so, a pointer as to why
would be appreciated.
Sincerely,
Gene Wirchenko