javascript, how to insert the javascript content from a javascript file into the html

So instead of referencing a javascript file:
<html>
<head>
<script language="javascript" type="text/javascript" src="/javascript/my_utils.js">
</script>

I would like the content of that javascript file inserted into the HTML.  Is there a way to do that?
rgbcofAsked:
Who is Participating?
 
dxdinhConnect With a Mentor Commented:
just paste the content of my_utils.js  inside script tag and remove the source


// something like this
<script language="javascript" type="text/javascript" >

var globalX = "xx";
function x ()
{

}

function y()
{
}

.....



</script>
0
 
rgbcofAuthor Commented:
I guess that's the only way then.
0
All Courses

From novice to tech pro — start learning today.