Javascript - Script

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript)

1 - About

Javascript script have a js extension.

Advertising

3 - Management

3.1 - Location

Javascript file are generally in the src, lib, or dist directory

3.2 - Execution

globalEval.js
function globalEval( data ) {
	if ( data && jQuery.trim( data ) ) {
 
		// We use execScript on Internet Explorer
		// We use an anonymous function so that context is window
		// rather than jQuery in Firefox
		( window.execScript || function( data ) {
			window[ "eval" ].call( window, data );
		} )( data );
	}
}
$.ajax({
  method: "GET",
  url: "test.js",
  dataType: "script"
});