|
Hey, all
I'm having an issue with some simple js in FireFox. It works perfectly in IE and other browsers tested.
Here's the function:
<script type="text/javascript">
function setHeight() {
obj = document.getElementById("adjustedDiv");
if (obj.style.height == "30px") {
obj.style.height = 250;
}
else
{
obj.style.height = 30;
}
}
</script>
and the div looks like this:
<div id="adjustedDiv" style="height: 30px; width: 200px; overflow: auto; background-color: #0066FF" onmouseup="setHeight();"></div>
My js is rudimentary, to say the least. Whilst I've picked up other pages dealing with FireFox's strange js issues, none seem to apply here - at least, not that I'm able to tell. Any help would be greatly appreciated!
|