You're right; the browser does /not/ expect <script> tags in a .js file; it doesn't expect /any/ tags in a .js file, b/c .js file isn't a .html file. It's a .js file, so only javascript belongs in it.
Robert Leo Asanov wrote: > Hi! > > I've tried putting static javascipt into separate .js > file with getStaticJavascript(), and when I load it > with <script src=""> I get javascript error. But if I > save the page and remove "<script..>" at the beginning > and "</script>" at the end of static javascript code > then it works fine. Apparently browser doesn't expect > "<script>" tags in .js files. > Am I doing something wrong? > > Cheers, > Leo > > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
