3

I have a particular install of Windows 7 that will not display the standard JavaScript dialogs from web browsers.

e.g. These all fail, regardless how they are called on any site.

javascript:alert('A message and an OK button');
javascript:confirm('A message and an OK & Cancel button');
javascript:prompt('A message, an input box & an OK & Cancel button', 'Default');

The code itself is correct and not the issue. It works just fine on any other Windows PC in any browser... as well as in Google Chrome on the affected machine (since Chrome renders it's own dialogs vs. depending on the Windows built in dialogs)

My presumption is that there is a setting somewhere in Windows that is blocking or overriding the display of these dialogs - I just have no clue what it is or where it is.

Although not related I should note that all of the browsers on this PC have their Popup Blocker (for browser window popups) turned off.

1

3 Answers 3

1

Affecting both Microsoft Internet Explorer and Firefox seems highly unlikely to happen by accident, because they are completely separate implementations. (For fun, you could also try Google Chrome.)

The most likely reason I can think of is some sort of "anti-virus" protection software affecting the behaviors of these browsers.

(The next-most-likely reason I can think of is someone disabling JavaScript support, manually, in both browsers.)

0

Check under Internet option --> Security Tab --> select custom level --> In the Security Settings window which just opened Enable all under section 'Scripting' and 'Activex Contorls and plug-ins'

2
  • 2
    OP says this is affecting both IE and Firefox. Commented May 14, 2014 at 15:02
  • @techie007 correct, this is something in "Windows" that is broken/turned off as it affects Firefox to. I'd almost assume that any call the the standard MsgBox() feature in the windows API would also fail (though I haven't tested this).
    – scunliffe
    Commented May 14, 2014 at 15:31
0

I had this problem using a Windows 8 tablet running IE 10 and solved it by Enabling 'Allow websites to prompt for information using scripted windows' option under Internet Options -> Security Tab -> Custom Level

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .