Warrior Warrior - 1 year ago 82
Javascript Question

Javascript - innerHTML function in IE

I have a html file with content

<script language="JavaScript">
function fun1()
<div id="id1">
<a href="javascript:void(0)" onclick="fun1()">Click</a>

In innerHTML function iam getting only


tag is missing how can I get entire content?

Answer Source

Add <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> in the beginning of html

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download