javascript prevent click in function code example Example: ondblclick prevent single click javascript window.stop();