Every time I edit my javascript files and check the browser console they do not change, I have to close and open my browser many times, even delete the cache with CONTROL + SHIFT + R and even cut and paste the file to see the changes, what can I do to activate the changes in a faster way or failing that problem generates this difficulty to update?
Trying to edit this JS file gives me problems saying that the Document function is not a function
function zoom() {
document.body.style.zoom = "125%"
}
function cambiando() {
document.getElementById("cambio").value = 1;
document.cambiar_contrasena.submit();
}
function documentar() {
alert("hola");
}
function loginConectar() {
document.getElementById("conectar").value = 1;
document.index.submit();
}
function loginFocus() {
document.getElementById("txtusuario").focus();
}
function generarOMD() {
document.getElementById("generando").value = 1;
document.omd.submit();
}
function buscarOMD1() {
document.getElementById("buscando").value = 1;
document.buscar_omd.submit();
}
function buscarOMD2() {
document.getElementById("buscando").value = 1;
document.buscar_omd.submit();
}
function registrarUsuario() {
document.getElementById("registrando").value = 1;
document.registrarusuario.submit();
}
function restaurarContrasena() {
document.getElementById("restaurando").value = 1;
document.restaurarusuario.submit();
}
Sometimes I have to change the names of the functions many times because they say they are not functions:
Uncaught TypeError: document is not a function at HTMLInputElement.onclick
and changing the name serves, what can cause this problem?
document is called in a table that generates columns automatically through records in a database:
<td width="25"><input type="button" name="ver" id="ver" value="Ver" onclick="documentar();"></td></tr>
I had to change the name of the function to hello () and in the JS function hello ()