0
How can we type javascript in notepad
Is it compactible with windows 8 or 10 because mine is 7
3 Respuestas
+ 6
Or you can save a external JavaScript file with .js extension.
You just need to open the notepad and write a JavaScript code and save it with .js extension.
And attach it where you want. You can attach it in different html pages. Like this
<script src="name.js"></script>
and add it to body or head only. Both works fine.
+ 5
Open up notepad, write the text below, put your javascript where it says your javascript code goes here and don't forget to save it with the .html extension. And yes, it does work with windows 7, 8 and 10.
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
//Your javascript code goes here
</script>
</head>
<body>
</body>
</head>
+ 3
Yeah you can use notepad as an editor. But there are much better alternatives. Writing code in notepad is like building an airplane with a stone hammer.