中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

Input Time autofocus 屬性

Input Time 對象參考手冊 Input Time 對象

實例

查看 time 字段是否在頁面加載后自動獲取焦點:

var x = document.getElementById("myTime").autofocus;
x輸出結(jié)果為:
true

運行代碼 ?

定義和用法

autofocus 屬性用于設(shè)置或者返回 time 字段在頁面加載后是否自動獲取焦點。

屬性反映了 HTML autofocus 屬性。


瀏覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

所有主流瀏覽器都支持 autofocus 屬性

注意: Internet Explorer 9 及更早 IE 版本或者 Opera 12 或更早 Opera 版本瀏覽器不支持 autofocus 屬性。

注意: Internet Explorer 或 Firefox 瀏覽器不支持使用 type="time" 屬性的 HTML <input> 元素。


語法

返回 autofocus 屬性:

timeObject.autofocus

設(shè)置 autofocus 屬性:

timeObject.autofocus=true|false

屬性值

描述
true|false 描述了 time 字段在頁面加載后是否獲取焦點
  • true - time 字段獲取焦點
  • false - 默認(rèn)。time 字段不獲取焦點

技術(shù)細節(jié)

返回值: 布爾值,如果頁面在加載后 time 字段自動獲取焦點返回 true,否則返回false。

相關(guān)頁面

HTML 參考手冊: HTML <input> autofocus 屬性


Input Time 對象參考手冊 Input Time 對象其他擴展