Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/02/2020 in all areas

  1. Bloom

    Disable Autocomplete

    /* Turn autocomplete off on form*/ document.getElementById("caspioform").setAttribute("autocomplete", "off"); /* Turn autocomplete off on each input text element*/ if (document.getElementsByTagName("input").length > 0) { var inputElements = document.getElementsByTagName("input"); for (i=0; i < inputElements.length ; i++) { if (inputElements[i].getAttribute("type") == "text") { var att = document.createAttribute("autocomplete"); att.value = "off"; inputElements[i].setAttributeNode(att); } } }
    1 point
×
×
  • Create New...