Make a h1 class innerHTML a variable
I was creating a script but I came to a halt. I am trying to make a title from a movie on neflix to a variable.
(I am going to use the movie Hannibal as an example)
I tried this code but I get undefined. I've searched forums about h1 tags and found some but they only have solutions for
var netflixTitle = document.title.substring(document.title.length);
<h1 id="title">This is what I want</h1>
Thanks goes out for the guy that helps an ametuer out.:thumbsup:
<h1 class="title">This is what I want</h1>