I'm looking for a script or something of the sort to lock in an iframe. When it works the url inside my iframe will change if the user clicks any of the links inside my iframe. For example if I had google.com inside my iframe on the homepage and the person on my website viewing the iframe clicked images then it would simply change to images in the iframe instead of loading it in internet explorer
Page 1 of 1
Locking In Inline Frames Is there a way to do it?
#2
Posted 14 February 2008 - 07:31 PM
I have been trying to find an answer for this for a few weeks now. I have not yet found a solution either, but it is probably because I do not know the proper search phrase. I'll try to dig around later.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens
#3
Posted 14 February 2008 - 11:53 PM
thanks for the info, i know certain sites do not allow iframes and instead just open their site in a new window
let me know if you find anything
let me know if you find anything
TOASTERS WILL RULE THE WORLD!!!!!!!!!!!!
#4
Posted 03 March 2008 - 03:01 AM
anything new on the iframes?
TOASTERS WILL RULE THE WORLD!!!!!!!!!!!!
#6
Posted 05 March 2008 - 01:43 AM
awww mann! oh well i'll just keep on searching the web there should be a way to do it but i can't find anybody who knows how.
TOASTERS WILL RULE THE WORLD!!!!!!!!!!!!
#7
Posted 05 March 2008 - 04:47 AM
I'm not sure what you mean by 'lock', but maybe something like this helps?
<html>
<head>
<script type="text/javascript">
function jsSwitchIframe(sSRC) {
document.getElementById('iFrame_1').src = sSRC;
}
</script>
</head>
<body>
<iframe id="iFrame_1" src="http://www.google.com"></iframe><br>
<button onclick=java script:jsSwitchIframe("http://www.cnn.com")>CNN</button><br>
<button onclick=java script:jsSwitchIframe("http://www.yahoo.com")>YAHOO</button>
</body>
</html>
Acer Aspire 5732z
OS: Windows 7 Ultimate
Processor: Intel Pentium III Xeon, 2200 MHz
RAM: 3 GB
Display: Mobile Intel GMA 4500M
Share this topic:
Page 1 of 1

Help



Back to top









