I am really confused. I want to make a <p> tag hidden using javascript, and then, if i detect its running IE, i want to make it visible. I can't even make it hidden though. I have tried
<script type="text/javascript>
document.warning.style[visibility] = 'hidden';
i've tried
<script type="text/javascript>
document.warning.style.visibility = 'hidden';
and i've tried both of these variations with the getElementById('warning') instead of plain old document.warning too. Nothing works. I've even tried setting display to none. What is going on?