Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to call a script from another script in javascript

// File1.js
function alertNumber( n ) {
    alert( n );
};
// File2.js
function alertOne( ) {
    alertNumber( "one" );
};
// Inline
alertOne( ); // No errors
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #script #script #javascript
ADD COMMENT
Topic
Name
1+1 =