I have a specific requirement that my page refreshes after 2 seconds. I have used this code to achieve this functionality -
<?php $page = $_SERVER['PHP_SELF']; $sec = "2"; ?> <html> <head> <meta http-equiv="refresh" content="<?php echo $sec?>;URL='<?php echo $page?>'"> </head> </html>
Now I need a button that can change the refresh time from 2 seconds to 10 seconds to achieve different functions.
If anyone could suggest how I should achieve this, that would be of great help. Thanks
Add button with js code: In HTML
Add tag ID in metadata
Add js script to the page
renew: Result page: