How can one fetch and print the current year without using document.write() in JavaScript? This is for a typical copyright line in the footer; e.g., © 2017 Stack Overflow. Right now I’m using the standard document.write() method. Answer Yes sure you can use an element: Add a link to your JS like so: And within this file you can do:
Tag: document.write
simple search results page: if/else issues using localStorage variables and document.write
working on a mini page for some homework and I’m stuck! What we’ve been told to do it to pull localStorage variables from a fake “registration” page we’ve made (which gets it’s information from a user’s choice of three radio buttons) and use that information to alter what the user will see on a fake, very basic “e-commerce” site. What