forum

Home / DeveloperSection / Forums / How can I change document title to record from db with javascript?

How can I change document title to record from db with javascript?

Anonymous User217005-Oct-2013

I want to change the document title but cant get it to work. I am working with the following code:

echo "<input type='textbox' id='print' value='".$row['formuliernummer']."'>"; 
<script type="text/javascript">
var print = document.getElementById("print");
document.title = print;
</script>


The formuliernummer comes from a db.


Updated on 05-Oct-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By