Enviado em 10/09/2014 - 14:05h
Estou tentando fazer o login sem teclar no botão de entrar!
fiz assim mas não está dando certo:
<html>
<head>
<title>teste</title>
<script>
function $(id){
return document.getElementById(id);
}
window.onload=function(){
window.location="url.....";
document.getElementById("loginUsuarios").value = 'usuário';
document.getElementById("loginsenha").value = 'senha';
document.getElementById("loginbtEntrar").click();
}
</script>
</head>
<body>
<p>Logando...</p>
</body>
</html>
fiz assim mas não está dando certo:
<html>
<head>
<title>teste</title>
<script>
function $(id){
return document.getElementById(id);
}
window.onload=function(){
window.location="url.....";
document.getElementById("loginUsuarios").value = 'usuário';
document.getElementById("loginsenha").value = 'senha';
document.getElementById("loginbtEntrar").click();
}
</script>
</head>
<body>
<p>Logando...</p>
</body>
</html>