PDA

View Full Version : Two Questions



oldcrazylegs
Mar 17th, 2008, 07:49 PM
Since we have this for CSS



<meta http-equiv="Content-Style-Type" content="text/css" />


Is there also one for JavaScript?

Also why do people want to change what their browser presents to the server. For instance telling the server you are using Internet Explorer when you are really using Firefox? Seems kind of silly to me.

oldcrazylegs
Mar 17th, 2008, 08:04 PM
I finally found what I was looking for.

<meta http-equiv="Content-Script-Type" content="text/javascript" />

liorean
Mar 17th, 2008, 08:43 PM
Also why do people want to change what their browser presents to the server. For instance telling the server you are using Internet Explorer when you are really using Firefox? Seems kind of silly to me.Because sometimes the content that the site serves doesn't work if they don't spoof another browser. This is the same reason that ie identifiers itself as "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)" - because Netscape presented their browsers using "Mozilla/#.# ...", and sites served different content to Netscape than to other browsers. Since ie was a feature-competitor to Netscape, it was better off with the Netscape content than the other content. Now the tables have turned and it's the other browsers that sometimes have to spoof ie in order to get the content they want.