简体   繁体   中英

JavaScript not working on Windows Server 2003

I have compiled my website and tested locally and everything works fine. However, when I upload my script to the host, the js files are not working on the server (Windows 2003). The error message received when executing the script is:

'window' is undefined
'navigator' is undefined
microsoft jscript runtime error

Please let me know the any testing method to check the js function in windows server.

Regards, Riyas

Turn off Internet Explorer Enhanced Security for admin users and ensure you're logged in as an admin after that:

Step 1 - Go to: Start-->Control Panel-->Add or Remove Programs-->Add/Remove Windows Components

Step 2 - Highlight (don't uncheck) Internet Explorer Enhanced Security Configuration

Step 3 - Click "Details"

Step 4 - Uncheck "For administrative groups"

Step 5 - Click OK, then close windows setup and add/remove window

Step 6 - Never use that server's browser to access the real internet again :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM