Empty links in javascript

Best of way of writing empty links in javascript is

<a href="javascript:void(0);" onMouseOver="status='';return true" onClick="myPopup();" >

here, due to onMouseOver attribute, it won’t display the link location in the browser status bar. Otherwise, you see the ugly location to “javascript:void(0)” in status bar.

Leave a Reply

Your email address will not be published. Required fields are marked *