HTML 5 <event-source> 標簽
定義和用法
<event-source> 標簽定義由服務器發(fā)送的事件的來源。
HTML 4.01 與 HTML 5 之間的差異
<event-source> 標簽是 HTML 5 中的新標簽。
屬性
屬性 | 值 | 描述 |
---|---|---|
src | url | 其內(nèi)容類型為 "application/x-dom-event-stream" 的源的 URL。 |
標準屬性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title
如需完整的描述,請訪 HTML 5 中標準屬性。
事件屬性
onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload
如需完整的描述,請訪 HTML 5 中事件屬性。