88
rated 0 times
[
91]
[
3]
/ answers: 1 / hits: 23556
/ 10 Years ago, mon, april 7, 2014, 12:00:00
I'd like to change my iframe content but I don't understand how
<html>
<head>
<title>test</title>
<script src=http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js></script>
</head>
<body>
<iframe id=frame width=100% height=95% src=http://google.com></iframe>
<script type=text/javascript >
$('#frame').contents().find( body ).html('<p>hi</p>')
</script>
</body>
</html>
With this code I always have my google page and not a ifram with hi
More From » jquery