howard macrumors 68020 Original poster Jan 23, 2008 #1 so here's my question.. I have an iframe in the middle of a page and I would like to have different links around it that change the content of the iframe. Is this possible? Possible without making a separate making a separate html document for each iframe?
so here's my question.. I have an iframe in the middle of a page and I would like to have different links around it that change the content of the iframe. Is this possible? Possible without making a separate making a separate html document for each iframe?
angelwatt Moderator emeritus Jan 23, 2008 #2 You might be able to change it using JavaScript, but I haven't actually tried it. HTML: <iframe id="f" src="http://url"><iframe> Code: function changeIframe(url) { var f = document.getElementById("f"); f.src = url; }
You might be able to change it using JavaScript, but I haven't actually tried it. HTML: <iframe id="f" src="http://url"><iframe> Code: function changeIframe(url) { var f = document.getElementById("f"); f.src = url; }