Recommended Javascript Usage In a Master Page

So through:

Site Settings > Master Page > Alternate CSS URL

one can set the CSS that a particular master page will use. I'm wondering if there is a similar mechanism for Javascript or do I simply use the standard:

<script type="text/javascript"src="Includes/default.js"></script>

[547 byte] By [ChrisCoddington] at [2008-3-7]
# 1

There isn't any alternative like for css files.

But instead of using the standard script tag for including a javascript file, try to use the same server control used in the default master page for including the core.js file.

CharbelCHARBEL at 2007-9-13 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Enterprise Content Management...
# 2

Try this to solve the problem !!! Thanks to Markitup

http://markitup.com/Posts/Post.aspx?postId=5338c901-c910-4af0-bbca-6ae0067df759

<script language="javascript"
type="text/javascript"
src="<%= Request.ApplicationPath %>/myhelper.js">

</script>

RicardoCasquete at 2007-9-13 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Enterprise Content Management...
# 3
I don't believe this will work unless you enable code blocks in master pages. This isn't particularly necessary in this case. Just use the ScriptLink control in your master page, or use direct html markup with the reference like you would with any other HTML page.
TylerButler[MSFT] at 2007-9-13 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Enterprise Content Management...

SharePoint Products and Technologies

Site Classified