Users Pricing

forum

Home Forums How can I change document title to record from db with javascript? – MindStick

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

Anonymous User 2536 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.


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md