javascript - alert not displaying when using button onclick -
here's fiddle.
i'm trying make when click button alerts 'you tried search...
...whatever typed...!'
, button doesn't alert message.
i've tried using:
var = document.getelementbyid('input').value; alert("you tried search " + + "!");
and still doesn't alert message, please answer?
your function inaccessible outside of it's closure. should
window.search = function() { var = document.getelementbyid('input').value; alert("you tried search " + + "!"); }
Comments
Post a Comment