GUVI
Back

Referring External js file in code editor-how?

Created 3 years ago
81 Views
3 Comments
Ajay-Amyb
@Ajay-Amyb
Ajay-Amyb
@Ajay-AmybProfile is locked. Login

for referring external javascript file in the code editor, can anyone let me know how?..below is the code i used in my local

<html>

<body>

<script>

console.log("my text");

</script>

<script src = "externaljs.js"></script>

<script>

guviAlert();

</script>

</body>

</html>

//externaljs.js file

function guviAlert(){

alert("GUVI Geek Technologies, Chennai");

}

Comments (3)
Please login to comment.
 
Powered by habitate.io Habitate