Answers for "ways to interact with html file javascript"

2

how to open html file with javascript

// In my case, I used a button to activate this function:
function myFunction() {
    window.location.href = 'index.html';
}
Posted by: Guest on November-18-2020
1

Javascript file in html angeben

<!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="utf-8">
  <script src="something.js"></script>
</head>
<body>
</body>
</html>
Posted by: Guest on November-20-2020

Code answers related to "ways to interact with html file javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language