1
I have two pages, where this receives data, writing the product name and description:
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<form>
Código:
<input name="campo1" id="campo1" type="text">
Descrição:
<label name="descrproduto" id="descrproduto">
</label>
</form>
</body>
</html>
And this, which will send data to the previous:
<html>
<head>
<meta charset="utf-8">
<script> function levarcodigo( codigo,descricao )
{top.opener.document.getElementById("campo1").value = codigo;
top.opener.document.getElementById("descrproduto").innerHTML = descricao;}
</script>
</head>
<body bgcolor="grey">
<a href="javascript:levarcodigo(1010,'Cafeteira');">1010-Cafeteira</a>
<a href="javascript:levarcodigo(1020,'Jogo de panelas');">1020-Jogo de panelas</a>
<a href="javascript:levarcodigo(1030,'Jogo de taças');">1030-Jogo de taças</a>
<a href="javascript:levarcodigo(1040,'Churrasqueira');">1040-Churrasqueira</a>
</body>
</html>
They work on separate pages but how do I make them work within frames?
The two pages inside frames? Then in case, it would be 3 pages?
– Sam
Yes, in total it will be three
– Daniel S. Santos