You can not!
You could use AJAX to call a PHP file and have it checked a saved time frame, but, that is complicated. You can just add a PHP line in the system to set the time and then compare against it. Or you can use timeout() functions to disable things as needed. You can set your button to call a JS routine. Then set a timeout function for like 3000 milliseconds. After the 3000 milliseconds, a variable can be changed and depending on that results, either allow the button or just throw out an alert saying too late.
Not sure if that makes sense to you. Give it a try and post what you come up with… Good luck.