IE / Firefox and Javascript
Monday, March 21 2005 0 Comments
I'm pretty sure all web developers have been annoyed a time or two (thousand) at the differences in the way Firefox and IE perform with the same HTML / Javascript. I am forced to use IE primarily at work because half of the legacy code is only IE compliant, which is kind of sad.
One recent annoyance I had was a simple one: opening a pop-up window. Here was the code:
This worked fine in Firefox, but not in IE. IE complained about "invalid argument" ... after about 3 hours of googling I found out that the page title (what I had put as "some page") has to be 1 word for IE to function properly. How retarded is that?
On a side note, checkout these cool extensions for firefox! ... Tidy is my new favorite...
One recent annoyance I had was a simple one: opening a pop-up window. Here was the code:
<a onclick="window.open('url.html', 'some page', 'toolbar=no, location=no, scrollable=no');" href="#" > link < /a > This worked fine in Firefox, but not in IE. IE complained about "invalid argument" ... after about 3 hours of googling I found out that the page title (what I had put as "some page") has to be 1 word for IE to function properly. How retarded is that?
On a side note, checkout these cool extensions for firefox! ... Tidy is my new favorite...
- EditCSS for on-the-fly css editing of viewed content (user edit, notpermanent) (http://editcss.mozdev.org/)
- NukeAnything. Highlight, right-click, Remove. Remove any element from thecurrent browser view (not permanent).(http://extensionroom.mozdev.org/more-info/nukeanything)
- Tidy extension(http://users.skynet.be/mgueury/mozilla/) or the HTTP headers extension(http://livehttpheaders.mozdev.org/). Very friendly for checking code.

