Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q609 How can I use entities with Microsoft Internet Explorer?

irt.org | Knowledge Base | JavaScript | General | Q609 [ previous next ]

Q609 How can I use entities with Microsoft Internet Explorer?

In Netscape Navigator you can use JavaScript Entities as follows:

<html>
<head>
<script language="JavaScript"><!--
var len = 200;
//--></script>
</head>

<body>
<hr width="&{len};">
</body>

</html>

Microsoft Internet Explorer does not support JavaScript Entities, but you could try:

<html>
<head>
<script language="JavaScript"><!--
var len = 200;
//--></script>
</head>

<body>

<script language="JavaScript"><!--
document.write('<hr width="' + len + '">);
//--></script>

</body>

</html>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.