Response title
This is preview!
main.js
file
: (html ext.!) var myHeading = document.querySelector('h1');
myHeading.innerHTML = 'Hello world!';
Problem: I made a folder/html: name main.js, and pasted this
between <body></body>. No result. Nothing happens also on adding <> tags beginning/end.
I use 'Kompozer' as a HTML editor, should not be of a problem.
What am I doing wrong?
My editor has changed the text in the following way:
<html>Your editor is messing with what you type.what is wrong?
© 2013 jQuery Foundation
Sponsored by and others.