Set Value of Input Using Javascript Function
Solution 1:
Try... for YUI
Dom.get("gadget_url").set("value","");
with normal Javascript
document.getElementById('gadget_url').value = '';
with JQuery
$("#gadget_url").val("");
Solution 2:
document.getElementById('gadget_url').value = '';