TOC PREV NEXT INDEX

Put your logo here!


detail


Returns detail about the event, depending on the type of event.

Syntax

detailedInfo = event.detail 

Parameters

detailedInfo is a number.

Example

<html> 
<head> 
  <title>event.detail</title> 
  <script> 
  function giveDetails(e) { 
      // details = e.detail; 
      text = document.getElementById("t"); 
      text.setAttribute("value", e.detail); 
  } 
  function init() { 
      b1 = document.getElementById("b"); 
      b1.onclick=giveDetails;    
  } 
  </script> 
</head> 
 
<body onload="init();"> 
 
<form> 
 <input id="b" type="button" value="details" /> 
 <input id="t" type="text" value=""  /><br/> 
 <input type="reset" /> 
</form> 
 
</body> 
</html> 

Notes

detail is a number representing how many times the mouse has been clicked in the same location for this event. The value of detail is usually 1.

Specification

detail 


mozilla DOM project | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX