Set Seconds
<html> <body> <button onclick="var myDate = new Date(); myDate.setSeconds(20); alert(myDate);">Date: set Seconds </button> </body> </html>