function init() { mylayer = new DynLayer("mylayerDiv") if (is.ns) mylayer.elm.captureEvents(Event.MOUSEDOWN) mylayer.elm.onmousedown = new Function ("mouseDownHandler('mylayerDiv')") }
function mouseDownHandler(layer) { status = "You clicked "+layer setTimeout('status=""',1000) }
Click the layer and view the results in the status bar (alerts cause problems in Netscape)