That's a good way to handle it.
But it only works in Internet Explorer, as far as I know.