Difference between revisions of "Iframe change"

From Level Access Web Labs
Jump to navigation Jump to search
(Update all URLs to work correctly)
Line 5: Line 5:
 
     <script>
 
     <script>
 
         function change() {
 
         function change() {
             document.getElementById("f").src = "https://www.wtop.com";
+
             document.getElementById("f").src = "https://wtop.com/";
 
         }
 
         }
 
     </script>
 
     </script>
Line 11: Line 11:
 
   <body>
 
   <body>
 
   <button onclick="change();"> Change </button>
 
   <button onclick="change();"> Change </button>
   <iframe id="f" src="https://www.ssbbartgroup.com">
+
   <iframe id="f" src="https://www.levelaccess.com/">
 
   </iframe>
 
   </iframe>
   <iframe id="g" style="height:224px;" src="http://www.bbc.com">
+
   <iframe id="g" style="height:224px;" src="https://www.bbc.com">
 
   </iframe>
 
   </iframe>
 
   </body>
 
   </body>
 
</html>
 
</html>

Revision as of 17:39, 27 April 2021