Here’s a “PHP” solution:
echo '<script type="text/javascript">
var x = new Date()
document.write(x)
</script>';
More Related Contents:
- Javascript output in the source files? [closed]
- Calling a php script at the end of a js script
- PHP json_encode encoding numbers as strings
- Check if cookies are enabled
- Passing JavaScript array to PHP through jQuery $.ajax
- Is native PHP support for Web Sockets available?
- Check if JavaScript is enabled with PHP
- Access PHP var from external javascript file
- Send JSON data from Javascript to PHP?
- jQuery Mobile: How to correctly submit form data
- Best way to transfer an array between PHP and Javascript [duplicate]
- Use Javascript to access a variable passed through Twig
- How to pass an array using PHP & Ajax to Javascript?
- How can I block direct access to my JavaScript files?
- Is there a built-in function or plugin to handle date formatting in JavaScript?
- How to add anchor tag to a URL from text input
- Regex for names with special characters (Unicode)
- How can I pass variables from JavaScript to PHP?
- How to get exact browser name and version?
- Removing black borders 4:3 on youtube thumbnails
- browscap ini directive not set
- How to properly handle session and access token with Facebook PHP SDK 3.0?
- Regular expression for a string that must contain minimum 14 characters, where at minimum 2 are numbers, and at minimum 6 are letters
- uploading a file via ajax with php
- Is there a function similar to setTimeout() (JavaScript) for PHP?
- How to keep form values after post [duplicate]
- Run php function inside jQuery click
- Detect Ajax calling URL
- passing php string with multiple lines to a javascript function/variable
- How to assign Php variable value to Javascript variable? [duplicate]