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)
var netflixTitle = document.title.substring(document.title.length);
I tried this code but I get undefined. I've searched forums about h1 tags and found some but they only have solutions for
<h1 id="title">This is what I want</h1>
<h1 class="title">This is what I want</h1>
Thanks goes out for the guy that helps an ametuer out.