BleepingComputer.com: Locking In Inline Frames

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Locking In Inline Frames Is there a way to do it?

#1 User is offline   holytoaster4 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 166
  • Joined: 24-October 06

Posted 13 February 2008 - 10:49 PM

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
TOASTERS WILL RULE THE WORLD!!!!!!!!!!!!

#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,604
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

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 User is offline   holytoaster4 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 166
  • Joined: 24-October 06

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 :thumbsup:
TOASTERS WILL RULE THE WORLD!!!!!!!!!!!!

#4 User is offline   holytoaster4 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 166
  • Joined: 24-October 06

  Posted 03 March 2008 - 03:01 AM

anything new on the iframes?
TOASTERS WILL RULE THE WORLD!!!!!!!!!!!!

#5 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,604
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 03 March 2008 - 01:08 PM

Not for me. That's way down on my list of priorities, ie, if I never get to it, it won't care. :thumbsup:
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#6 User is offline   holytoaster4 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 166
  • Joined: 24-October 06

  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 User is offline   jhsmurray 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 383
  • Joined: 15-July 07
  • Location:6,378 km above the Earth's core

Posted 05 March 2008 - 04:47 AM

I'm not sure what you mean by 'lock', but maybe something like this helps?
<html>
<head>
&lt;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
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users