I have a problem I want to change the Automatic year with javascript
as in php is this possible?
document.write (new Date (). getFullYear ()); this works but want to plug that into var, but then page is completely off just a year this and screen shot [enter image description here][1] [1]: https://i.stack.imgur.com/s8OA8.png
$( document ).ready(function() { console.log( "ready copyright" );
var copyright = 'Copyright©';
var static_year = 2014;
var test = document.write(new Date().getFullYear());
var company ="Hondenverzorgingleentje";
var company_url = 'https://www.hondenverzorgingleentje.be';
document.getElementById("copyright").innerHTML = copyright +
static_year + company + copyright;
}
Copyright©'.$static_year.' - ' .$current_year.' ' .$company.' Alle rechten voorbehouden ' .$designer.''; ?>