I am trying to insert some test in the middle of a line using IE and NS. Below are some of the help I have received but they do not work for my purpose.
I need to place text in between the <span> tag:

<p>left text<span id="newText" name="newTEXT"> </span>right text</p>

<html>
<head>
<style type="text/css">
#heading {position:absolute;}
</style>
<script language="JavaScript">
<!--
function isNS(){
if (navigator.appName == "Netscape"){
return true;
}else{
return false;
}
}

function display(html){
if (isNS()){
document.heading.document.open();
document.heading.document.write(html);
document.heading.document.close();
}else{
heading.innerText = html;
}
}
//-->
</script>
</head>
<body onload="display('Text Message');return true;">
<span id="heading" name="heading"></span>
</body>
</html>
--------------------------------------------

<script language="JavaScript">
<!--

var n = (navigator.appName == "Netscape") ? 1:0

function display(html){
if (n){
document.heading.document.open();
document.heading.document.write(html);
document.heading.document.close();
}else{
heading.innerText = html;
}
}
//-->
</script>

--------------------------------
function display(html){
if(document.getElementById){
document.getElementById("heading").innerHTML=html;
}else if(document.all){
document.all["heading"].innerHTML=html;
}else if(document.layers){
with(document.layers["heading"].document){
open();write(html);close();
}}}