Menu
Hi I have a code which is like this one:
<html>
<body>
<script type=”text/javascript”>
function changeText(){
document.getElementById(‘Stuff’).innerHTML = “<span style=”white-space:pre;” >”+”one line n enter n enter”+”</span>”;
}
</script>
<div id=”Stuff” style=”overflow: auto; min-height: 30px; white-space: pre;”>
</div>
<input type=’button’ onclick=’changeText()’ value=’Change Text’/>
</body>
</html>
It works fine. However on FF I am able to see 3 lines of my text (as expected) but on IE a see only I single long line, which is not what I wanted. Any idea?