tags:

views:

126

answers:

2

A colleague suggested to the testers they enter javascript:resizeTo(1024,768); into the address bar after starting the app to test it in the smallest browser dimensions for which we are responsible. However, shortly after executing this command (in IE6), the backspace and delete keys stopped working and users could not cut-and-paste.

Why is this happening? In general, should users avoid enter javascript:xxx commands into the address bar? Thanks.

+3  A: 

It's just a kind of bookmarklet that he's suggested typing in directly. I wouldn't expect it to cause any trouble, although with IE6 I wouldn't guarantee that the address bar having changed wouldn't cause a problem. To get around that, just give them a page with

<a href='javascript:resizeTo(1024,768);'>bookmark this</a>

...on it and have them right-click and bookmark that. Then they can use it from their bookmarks without changing the address bar.

But you'd be better off with a proper resizing tool. Search for "browser resizer" to find some (I can't recommend a specific one).

T.J. Crowder
I agree; thanks.
Upper Stage
+1. Sometimes I'll type some `javascript:` command into my address bar (usually to alert/dump some information). I can honestly say I've never run into any problems with delete/backspace keys. I've also tried to repro your issue on WinXP SP3 but no luck.
Andy E
Thanks, @Andy. Probably another IE6 bug.
Upper Stage
A: 

I bet it was pure chance. Typing that code into the location bar is roughly equivalent to executing it from the page source and that executed statement only resizes current window.

Álvaro G. Vicario
Several users have repeated the problem pointing to several different environments/deployments. I tried to repeat the problem for an hour to no avail before I discovered the testers were updating their address bars. Twenty seconds later, I repeated the problem.
Upper Stage