Por ejemplo, tengo una pagina:
index.html
Código:
Y la otra del iframe:<html> <head> <title>ejemplo</title> </head> <body> <iframe src="titulo.html"></iframe> <p class="titulo"></p> </body> </html>
titulo.html
Código:
¿Alguien sabe como acceder a ese elemnto <p> fuera del <iframe>?<html>
<head>
<script language="javascript" src="../js/jquery.js"></script>
<script type="text/javascript">
function copiarAFicha(dato){
// AQUI SE COPIARIA EL DATO.
LOQUESEA($('.' + dato).val());
}
</script>
</head>
<body>
<input id="titulo" name="titulo" type="text" onkeyup="copiarAFicha('titulo')">
</body>
</html>
Muchas gracias.



