If i click on button it should change to JS program … But BUTTON is not working … some were i did a stupid mistake
make sure you included the correct file. You sure that jss.js contains function test
? Also make sure the js file is next to the html file.
This is also better to move the script tag inside the head
tag, rather body
Yes I got an error in Chrome as ::
Uncaught ReferenceError: test is not defined at HTMLButtonElement.onclick …
I created 2 different progs … js.html and jss.js … so now the 2 progs must be in same directory … ok …
Now I understood actual JS programming … TQ so much … I will try to solve it …
Hoo ok … learning … tq