Click to See Complete Forum and Search --> : Re: displaying document properties?


ejl34
01-09-2003, 04:13 PM
I an trying to construct a webpage that will "simply"
display all the "document" properties and display six of the properties on a line of text and seperating each property with a space and semi colon.

All I get with (see code) is full vertical list of properties???

<!-- HTML Document Reference myemail1.htm (C) 2003 Visual Software Training Limited --!>

<html>

<head>

<title> object eg</title>


<script language="JavaScript">

for (form in document) {
document.write (form + "<Br>");
}
</script>

</body>

</html>
Please advice???? thanks dave

khalidali63
01-09-2003, 04:38 PM
Is this close to what you want?

:-)

Khalid


<html>
<head>
<title> object eg</title>
<script language="JavaScript">
var ctr =0;
for (form in document) {
if(ctr>0 && (ctr%6)==0){
document.write (form + "<Br>");
}else{
document.write (form + "&nbsp;;&nbsp;");
}
ctr++;
}
</script>
</body>
</html>