Make an image change iframes page - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Make an image change iframes page

Demo Code

ResultView the demo in separate window

<html>
 <head></head> 
 <body> 
  <a href="javascript:void(0);" onclick="document.getElementById('testId').src = 'http://www.yahoo.com'"> <img src="https://www.java2s.com/style/demo/Opera.png"> </a> 
  <iframe id="testId" width="100" height="100" src="http://www.google.com"></iframe>  
 </body><!--   w  w  w .  j  av  a  2 s.  com-->
</html>

Related Tutorials