INFO: JavaScript Entities Not Supported in Internet Explorer 4.0 (190280)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 3.01
  • Microsoft Internet Explorer (Programming) 3.02
  • Microsoft Internet Explorer (Programming) 4.0
  • Microsoft Internet Explorer (Programming) 4.01
  • Microsoft Internet Explorer (Programming) 4.01 SP1
  • Microsoft JScript 1.0
  • Microsoft JScript 2.0
  • Microsoft JScript 3.0

This article was previously published under Q190280

SUMMARY

JavaScript entities are a method supported in Netscape Navigator 3.0 and later that assign JavaScript code to an HTML tag attribute.

Entities takes the following form:
   <tag attribute="&{ javascript-statements };">
				
This technique is not supported in Internet Explorer.

MORE INFORMATION

In Netscape Navigator, the following HTML page displays a prompt while rendering and dynamically sets its background color to the entered value.

This code does not work in Internet Explorer.
   <HTML>
   <HEAD><TITLE>Javascript Entity Test</TITLE></HEAD>
   <BODY BGCOLOR="&{prompt("color?");};">
   </BODY>
   </HTML>
				

REFERENCES

For more information about Netscape Navigator's JavaScript specification, see the following Web page:

Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbhtml kbinfo kbScript KB190280