That's the wrong order now. It should assign url first, then link.href again so the IE bug doesn't occur.