Hi,
Are there any rules for using or not using quotes around true or false.
Witness the following: (Hold the alt key and click the document)
<html>
<head>
<script language=vbs defer>
sub document_onclick()
if d1.contentEditable=true then 'doesn't work
msgbox "d1.contentEditable=true"
else
msgbox d1.contentEditable=true
end if
if d1.contentEditable="true" then 'works
msgbox "d1.contentEditable=""true"" "
else
msgbox d1.contentEditable="true"
end if
if window.event.altKey=true then 'works
msgbox "window.event.altKey=true"
else
msgbox window.event.altKey=true
end if
if window.event.altKey="true" then 'doesn't work
msgbox "window.event.altKey=""true"" "
else
msgbox window.event.altKey="true"
end if
end sub
</script>
</head>
<body>
<div id=d1 contentEditable=true> </div>
</body>
</html>