Top
Navigation
I'm talking about
Last bookmarks...

Entries in suck (1)

mardi
27oct.2009

IE suck... again :)

Do you know why this code fails in IE (no matter which version: 6, 7, 8):

<script> window.open(url, 'window-' + Math.rand(), 'menubars=no, toolbar=no'); </script>

Well...

Because you can't use a dash (-) in a window name stupid (and neither can you use a dot (.)) ! :)

Fwi, the w3c state that a window name is a DOMString, and the definition of DOMString is http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-C74D1578 where dashes and dots are allowed..