Difference between revisions of "Iframe change"

From Level Access Web Labs
Jump to navigation Jump to search
m (Fix previous URL change)
 
(4 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
     <script>
 
     <script>
 
         function change() {
 
         function change() {
             document.getElementById("f").src = "https://www.wtop.com";
+
             document.getElementById("f").src = "https://www.npr.org/";
 
         }
 
         }
 
     </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" src="http://www.bbc.com">
+
   <iframe id="g" style="height:224px;" src="https://www.bbc.com">
 
   </iframe>
 
   </iframe>
 
   </body>
 
   </body>
 
</html>
 
</html>

Latest revision as of 17:40, 27 April 2021