Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Locking In Inline Frames


  • Please log in to reply
6 replies to this topic

#1 holytoaster4

holytoaster4

  • Members
  • 166 posts
  • OFFLINE
  •  
  • Local time:10:53 PM

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!!!!!!!!!!!!

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:09:53 PM

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.

#3 holytoaster4

holytoaster4
  • Topic Starter

  • Members
  • 166 posts
  • OFFLINE
  •  
  • Local time:10:53 PM

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 holytoaster4

holytoaster4
  • Topic Starter

  • Members
  • 166 posts
  • OFFLINE
  •  
  • Local time:10:53 PM

Posted 03 March 2008 - 03:01 AM

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

#5 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:09:53 PM

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:

#6 holytoaster4

holytoaster4
  • Topic Starter

  • Members
  • 166 posts
  • OFFLINE
  •  
  • Local time:10:53 PM

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 jhsmurray

jhsmurray

  • Members
  • 383 posts
  • OFFLINE
  •  
  • Location:6,378 km above the Earth's core
  • Local time:11:53 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users