---
title: "Disappearing text in IE6 and \"dead\" JavaScript links"
date: 2007-12-01
canonical: https://michaelshadle.com/2007/12/01/disappearing-text-in-ie6-and-dead-javascript-links
---

# Disappearing text in IE6 and "dead" JavaScript links

We discovered a couple little annoyances with IE6, and I thought it would be useful to publish their workarounds.

Issue #1:

Random text would "disappear" on a page. It actually was still there and would show sometimes after hovering over it. The fix turns out to be setting the CSS for the text in question to "height: 0.01%" - it's so simple but so needless. It shouldn't have to be done. It should just work.

Issue #2:

```xml
<a href="javascript:anything" onclick="something()">
```

Won't work. It will just act like a dead link (or perhaps just ignore the onclick...) This will work however:

```xml
<a href="javascript:something()">
```

Note: Typically I try to keep my href's to be plain "javascript:;" if I need to use anchor-based links, and then chain events off of it using the element's ID and jQuery.
