mio iFrame si presenta così:Come si imposta src su un iframe con jQuery?
<iframe id="iframe" name="iframe1" frameborder="0" src=""></iframe>
E il mio script è simile al seguente:
<script type="text/javascript">
$(document).ready(function() {
$('#iframe').attr('src',http://google.com);
})
</script>
Ho anche provato a mettere le virgolette attorno alla url:
<script type="text/javascript">
$(document).ready(function() {
$('#iframe').attr('src','http://google.com');
})
</script>
ma non è lavoro.
Cosa mi manca?
Si sono verificati errori dal browser? – rjg132234
http://jsfiddle.net/SLaks/8JKxh/ – SLaks