del dateTime property
Examples
Returns the date and time the text is deleted:
var x = document.getElementById("myDel").dateTime;
x The output is:
2011-11-15T22:55:03Z
try it"
Definitions and use
dateTime property sets or returns datetime attribute value to delete text.
datetime attribute defines the text to be deleted date and time.
Note: dateTime property has no visual effect in an ordinary web browser, but you can use screen readers.
Browser Support
All major browsers support dateTime attribute.
grammar
Back dateTime attributes:
delObject .dateTime
Setting dateTime attributes:
delObject .dateTime=YYYY-MM-DDThh:mm:ssTZD
Property Value
值 | 描述 |
---|---|
YYYY-MM-DDThh:mm:ssTZD |
日期或时间。下面解释了其中的成分:
|
Technical Description
return value: | String that represents a date and time to delete the text |
---|
More examples
Examples
Modify datetime properties:
document.getElementById("myDel").dateTime="2013-11-15T21:40:07Z";
try it"
Related Pages
HTML Reference Manual: HTML <del> datetime attribute