JavaScript Entities in HTML

wxdqz

New Member
As a JavaScript beginner, I would appreciate some assistance. What's wrong with the following code sample? The "&{fred};" in the 5th last line isn't being recognised!

<!DOCTYPE HTML PUBLIC "-//SoftQuad Software//DTD HoTMetaL PRO 6.0::19990601::extensions to HTML
4.0//EN" "hmpro6.dtd">
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
var fred = "1";
//-->
</SCRIPT>
</HEAD>
<BODY>
<P STYLE="text-indent: &{fred};cm">
Hello
</P>
</BODY>
</HTML>
 
Back
Top