kaqu kaqu - 5 months ago 8
Javascript Question

wordpress get the title in javascript

in a PHP file is possible get the title of a post with

the_title();


is it possible, in a JS file, get the title of a post?

many thanks

lsv lsv
Answer

you can try document.title to get title