This jsFiddle example works in Google Chrome, but in Internet Explorer then when the close icon is clicked the browser removes the pop-up element but results in the text ‘none’ being displayed in the browser window. Please explain how I can resolve this issue.
HTML:
<div id="popup">
<!-- Close popup link -->
<a href="javascript:document.getElementById('popup').style.display='none';">X</a>
</div>
Use onclick for the event handler instead of href http://jsfiddle.net/AE2X3/4/