F5 se comportar como enter

0 respostas
L

Bom dia pessoal!!!

Teria algum exemplo que me desse um norte nesta questão?? Pois já estou vendo vários tópicos sobre o assunto a muito tempo e nada me ajudou!!!

Tenho esse codigo que manipula em um Iframe um sistema em java e precisava colocar o F5 para fazer o papel de enter, pois no coletor de dados que tenho aqui é só assim que funciona.

Segue código que tenho:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>”>

<html xmlns=“<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>”>

<style>

iframe {

/* Set the width of the iframe the size you want to transform it FROM <em>/

width: 640px;

height: 525px;

/</em> apply the transform <em>/

-webkit-transform:scale(0.25);

-moz-transform:scale(0.25);

-o-transform:scale(0.25);

transform:scale(0.25);

/</em> position it, as if it was the original size */

position: absolute;

left: 100px;

top: -14px;

zoom:75%;

}

</style>

<head>
<script>

$(body).keypress(function(e){

alert(e.which);

if(e.which == 116)

{

???

}

});

</script>

<iframe src =“Meu Site”/>

</head>
<body>

</body>
</html>
Como eu poderia incluir essa função para fazer o F5 manipular o <ENTER>???

Desde já obrigado!!!

Criado 11 de junho de 2015
Respostas 0
Participantes 1