jsprogrammer
Programmer
hi
javascript, innerHtml dosent work in ie on mac os.
please help me its urgent
example, when you mouse over the text it should add a hidden field but it dosent
<html>
<head>
<script type="text/javascript">
function nameon()
{
document.getElementById('param').innerHTML = '<INPUT name=111 value=222 TYPE=hidden>';
alert( document.getElementById('param').innerHTML );
for (var i = 0; i < document.testForm.elements.length; i++)
{
alert( document.testForm.elements.name + ' = ' + document.testForm.elements.value);
}
}
</script>
</head>
<body>
<FORM name="testForm" id="testForm" METHOD=POST ACTION="">
<span id="h2text" onmouseover="nameon()">Mouse over this text!</span>
<a id="param"> </a>
</FORM>
</body>
</html>
javascript, innerHtml dosent work in ie on mac os.
please help me its urgent
example, when you mouse over the text it should add a hidden field but it dosent
<html>
<head>
<script type="text/javascript">
function nameon()
{
document.getElementById('param').innerHTML = '<INPUT name=111 value=222 TYPE=hidden>';
alert( document.getElementById('param').innerHTML );
for (var i = 0; i < document.testForm.elements.length; i++)
{
alert( document.testForm.elements.name + ' = ' + document.testForm.elements.value);
}
}
</script>
</head>
<body>
<FORM name="testForm" id="testForm" METHOD=POST ACTION="">
<span id="h2text" onmouseover="nameon()">Mouse over this text!</span>
<a id="param"> </a>
</FORM>
</body>
</html>