Answers for "how to link one javascript to another javascript"

50

javascript link to another page

window.location.href = "http://mywebsite.com/home.html";
Posted by: Guest on July-18-2019
0

javascript link to another page

window.open("http://mywebsite.com/home.html")
Posted by: Guest on June-26-2020
0

how to call a script from another script in javascript

<script type="text/javascript" src="file1.js"></script>
<script type="text/javascript" src="file2.js"></script>
<script type="text/javascript">
    alertOne( );
</script>
Posted by: Guest on July-22-2020
0

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
Posted by: Guest on July-22-2020

Code answers related to "how to link one javascript to another javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language