NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
daarsk
Oct 21, 2016Tutor
ReadyNAS 102 host website including JavaScript
Hi, I want to build and host a website from my ReadyNAS 102. I have a basic index.php file as follows... <!DOCTYPE html>
<html>
<body>
<h1>JavaScript Test</h1>
<?php
echo "<p>Text by PHP</p>";
?...
- Oct 28, 2016
Hi daarsk,
Are you still referring to the date not showing? If you are, I think you just missed the command. Instead of "oneclick" it should be "onclick".
<button type="button" onclick="document.getElementById('demo').innerHTML = Date()"> Click me to display date and time.</button>
Hope this helps.
Regards,
FramerV
Oct 28, 2016NETGEAR Employee Retired
Hi daarsk,
Are you still referring to the date not showing? If you are, I think you just missed the command. Instead of "oneclick" it should be "onclick".
<button type="button" onclick="document.getElementById('demo').innerHTML = Date()"> Click me to display date and time.</button>
Hope this helps.
Regards,
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!