How to get IE to open JavaScript as text
Posted
by
Pete
on Super User
See other posts from Super User
or by Pete
Published on 2012-12-17T20:41:52Z
Indexed on
2012/12/17
23:05 UTC
Read the original article
Hit count: 192
I am running IE 9. Up until last week sometime, if I would put the URL of a JavaScript file in the address bar, it would show the JavaScript as text in the browser window. Now when I do that, it wants to download the JavaScript file.
How can I revert it to the previous handling?
This is annoying since I'm developing a web application and if I can get it to display the .js
files as text in the browser, then I can refresh it to force the cache to update.
Update: I've tested on several co-workers machines. For some, browsing to .js files renders them in the browser (IE 9 in all cases). In others, it asks for a download. File associations don't seem to have any effect. One co-worker we tested with IE and Chrome. IE wanted to download it, but Chrome rendered it as text. This makes me think it's an IE issue and not an OS issue.
© Super User or respective owner