JavaScript DHTML/HTML/Del

Материал из Web эксперт
Перейти к: навигация, поиск

"dateTime" Example

    
<html>
<body>
<script language="JavaScript">
function function1() {
    document.all.myDel.dateTime = "2003-04-15T14:50:30Z";
    alert(document.all.myDel.dateTime); 
} 
</script>
<del id="myDel">This text has been deleted.</del>
<input type="button" 
       onClick="function1();" 
       value="Display date and time of the above text deletion">
</body>
</html>