+8

How can I link an iframe which loads when a button is clicked in HTML

iframe loads when button or object in page clicked

8/17/2019 6:58:35 AM

Adarsh Tomar

6 Answers

New Answer

+7

With a javascript function Something like... function clickMe(){ document.getElementById(yourElement).innerHTML="<iframe ... >" } and add onclick to the button

+4

https://code.sololearn.com/WfqIviavlkL0/?ref=app

+1

It's very fantastic, cool, amazing.😄

0

❣🕊❣🕊❣🕊❣🕊❣🕊❣ *مجھے نہ کسی کا دل,نہ کسی کی جان چاہیے...❤* *دل کا حال جو سمجھ سکے,وہ انسان چاہیے...❤* ❣🕊❣🕊❣🕊❣🕊❣🕊❣ *💞تنھا اجنبی💞*

0

What is the function of iframe?