I'd put the javascript across 2 separate lines, like the above:
var textbox = document.getElementById('yadda');
textbox.value = "";
I've never used the a = b = c format for javascript, only in C#.
Usually I do things like this for clicking buttons and checking checkboxes (onclick events)