How do I disable the save password bubble in chrome using Javascript?

I found there is no “supported” way to do it.

What I did was copy the password content to a hidden field and remove the password inputs BEFORE submit.

Since there aren’t any passwords fields on the page when the submit occurs, the browser never asks to save it.

Here’s my javascript code (using jquery):

function executeAdjustment(){       
        $("#vPassword").val($("#txtPassword").val());
        $(":password").remove();        
        var myForm = document.getElementById("createServerForm");
        myForm.action = "executeCreditAdjustment.do";
        myForm.submit();
    }

Leave a Comment