[removed] not working for me?

前端 未结 8 1942
栀梦
栀梦 2021-02-07 14:17

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(\'         


        
8条回答
  •  北海茫月
    2021-02-07 15:00

    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;
        }
    

提交回复
热议问题