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 User 2402 05-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 !


Message
Can you answer this question?

Answer

1 Answers

Liked By