JavaScript variable value on the same page in PHP code example Example: how set a js variable value to php variable in same page <div id="content"></div>