Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
        <input type="text" name="domain" id="domain"
   onKeyUp="typewatch('cb(3)', 1000  );"/>
<input id="searchBtn" type="button" onclick="alert('clicked.')" value="Search" class="buttonCore" title="Search">
 
var typewatch = function(){
  var timer = 0;
    return function(callback, ms){
        clearTimeout (timer);
        timer = setTimeout(callback, ms);
    }  ;
}();
function cb(obj){
  alert(obj);
}
document.getElementById("searchBtn").disabled=true;
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers