Well I\'m simply playing around with a userscript of GreaseMonkey and here\'s just something simple I attempt to do;
function test() { document.getElementById(\'
No Need to call the function on the page .. just you need to use below code which is best practices of coading
window.onload = function() { document.getElementById("txtCaptcha").value = code; document.getElementById("txtCaptchaDiv").innerHTML = code; }