How to display the title of the current document in JavaScript

1 Answer

0 votes
function set_p() 
{
     document.getElementById("p-id").innerHTML = document.title;
}

set_p()

/*
run:
  
CollectiveSolver
    
*/

 



answered Jul 31, 2015 by avibootz
...