Macos – How to close large Javascript Alert windows on Chrome/ OSX

google-chromejavascriptmacososx-leopard

I'm using Chrome 14 and OSX 10.5.8.

If a website generates a Javascript alert window with a lot of content (like debug information) the bottom of the window disappears off the screen.

This places the buttons out of reach and means there is no way of closing the alert window as the "traffic light" of window buttons doesn't appear in the top left-hand corner.

Having the alert window open disables various actions on Chrome and makes it unusable. The only way I've been able to close the alert window is using "Force Quit" to close Chrome down totally.

Is there anyway of closing a Chrome Javascript alert window that is too big for screen in OSX?

Best Answer

@rlemon has got it – activate the alert window and hit Enter. Chrome and Safari on OS X display JavaScript alert boxes with just one button (“OK” by default), which is focused.

Related Question