Saturday, November 18, 2006

How to Crash Internet Explorer

Ever wish you could make your friends and family switch away from Internet Explorer? Perhaps the ability to make it spontaneously crash (and I mean totally crash) just by sending them a link might sway them...

While working with both JavaScript and Internet explorer, and a while back (probably about a year ago now) I was trying to debug a script to make it work in both Firefox and Internet Explorer.
As part of the diagnostics, I wrote a script to iterate through objects and print their properties. As it happens, I tried this on the 'document.write' method, used to output text to the document. I forget the exact reason, but I do remember the outcome.
Firefox handles the code perfectly - but Internet Explorer, on the other hand, throws an exception and unceremoniously quits. Considering the script in question is one line long, or 61 bytes (about 0.06Kb), and that it can be embedded into any webpage, it's rather worrying.


I was surprised to see that, even a year later, the problem persists - so I figured I'd share this little code snippet.
(script) for (x in document.write) { document.write(x);}(slashscript)
**Make sure that you put in proper opening tags of javascript

That's it. For your entertainment, you can find the code
here, ready to run.
Be warned, if you are running Internet Explorer, your browser will most likely crash, taking all your currently open windows with it, and possibly rendering your system unstable.

I'd advise you to save your work.
If you're using Firefox (or anything other than IE), have no fear- you won't be affected. If your browser crashes with just 61 bytes of code, however - perhaps it's time to switch?

Labels: , , ,

Friday, November 17, 2006

Secret of Firefox Success


TechNewsWorld has an article today explaining some of the factors that recently helped Mozilla Firefox gain ground on IE.

"The browser was designed to be easily understood by the average online user, but Ross admits the average user might not realize the software exists or even what the term "browser" means. So Mozilla is working to spread the word through a grass-roots push, encouraging users to "tell their dentist, tell their family members, tell people they wouldn't normally tell about this product."

The article ends with a very interesting bit from Blake Ross, Firefox's co-creator, about a new project that his team should soon start working upon.

"If Firefox is a response to Internet Explorer, then what we're doing now is a response to Windows.A response to Windows? My my, isn't this interesting? Anyone here knows more about this project? As always, the comment section is open." >> Read more

Labels: , , , , ,

Moving your 'IE7 Menu Bar' Back to the Top

Those of you with IE7 are bugged with its menubar asI am. May be guys are "Geeks are Sexy" were even more annoyed because they put together a great tutorial on how to get it back to where it belongs.

The first thing I noticed when I installed IE7 on my Windows box was the very inconvenient location of the address bar. Why the heck is it located above the menu bar? (File, edit, view, etc.) I don't know what the folks at Microsoft thought when they designed IE7 that way, but this must be one of the most idiotic design decision they've ever made (For me at least).

For those who think that the address bar should be back at the bottom of IE7's menu section, do not despair! There is a simple registry tweak that will let you put it back as it was in IE6. All you need to do to set thing right again is add a simple key to your XP registry. Here's how to do it:

(Warning: Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft or WE cannot guarantee that these problems can be solved. Modify the registry at your own risk.)

- Close all IE browsers before doing anything
- Start your registry editor [Start -> Run > regedit >OK]. Your see your registry editor.
- On the left hand pane, browse to

"HKEY_CURRENT_USER \ Software \ Microsoft \ InternetExplorer \ Toolbar \ WebBrowser" and be sure that the WebBrowser key is selected.
- Right-click the right pane of the registry editor;

select New>DWORD Value, and name it "ITBar7Position"
- Double click that new value, and assign it with a decimal value of 1
- Restart IE7


Bingo ! You're done it.

Labels: , , ,