Top
Navigation
I'm talking about
Last bookmarks...
Main | After 14 months of work »
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..

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>