Forum Moderators: open
So I have two questions:
1. Is setting type="text/plain" supposed to indicate to the UA to display the contents as plain text?
2. If so, is there a workaround for IE? (I'd rather not take a copy of the file, and give it a .txt extension.)
<edit>that's within script tags. Your alternative of making a txt copy would probably work as expected</edit>
The only way I know of to display js in IE is to put it on a page. Hopefully someone else will have a better idea.
AddType text/x-server-parsed-html js
*Or*
Use Javascript to detect IE and replace your link with:
view-source:http://www.example.com/javascript-file.js
This will open the Javascript file in Notepad or whatever the default editor is. view-source only works with IE and newer versions of Netscape.