should wqork fine in both browsers
eg:tested in NN6.2+ and IE5+
<input type="text" name="txt" id="txt" value="some text">
<script language="javascript">
document.getElementById("txt".value = "Something else";
</script>
____________________________________________________ The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-2924
I have the following fnc. that runs fine in IE but does not do certain things(indicated with ~ on both sides) in NS:
function setClickedCell(myForm, myCell)
{
var f = document.getElementById(myForm);
var c = document.getElementById(myCell) ;
var v = document.getElementById('chosenCell');
~if ( v.value ) { // if a cell is already selected but do not wish to use anymore
// then unselect it by changing the bgc to normal.
f[v.value].style.backgroundColor = "#FEFACB";
}~
( c.value )
? c.style.backgroundColor = "#FEFA00" // alert the user that this cell already has a value in.
: c.style.backgroundColor = "#FF0000" ; // select the cell by changing the bgc to red.
~f.chosenCell.value = c.name;~ // finally do the job: select the cell and show it to the user..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.