<!DOCTYPE html>
<html>
<head>
<script type="text/JavaScript">
function initEvent()
{
var sp = document.getElementById("span_id");
sp.ondblclick = show_onclick;
};
function show_onclick()
{
alert("ondblclick Event on span_id")
}
</script></head>
<body onload="initEvent();">
<span id="span_id">Double Click Here</span>
</body>
</html>