I got a portion of javascript code embedded in HTML (generated on the server side) that looks like this:
function winWriteMail2(){ var win = open(\'\',\'wi
Google Analytics does it this way:
var _gat, gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));