getSeconds

種類メソッド
書式 Dateオブジェクト.getSeconds()
解説
秒を返します。
サンプルコード
function sampleCode()
{
dateObj = new Date();
n = dateObj.getSeconds();
txtField.data = n;
}
sampleCode();
実際のスクリプトをダウンロード