+ 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

17th Aug 2019, 6:58 AM
Adarsh Tomar
Adarsh Tomar - avatar
6 Answers
+ 7
With a javascript function Something like... function clickMe(){ document.getElementById(yourElement).innerHTML="<iframe ... >" } and add onclick to the button
17th Aug 2019, 7:41 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
17th Aug 2019, 9:17 AM
Safaa Alnabhan
Safaa Alnabhan - avatar
+ 1
It's very fantastic, cool, amazing.😄
19th Aug 2019, 2:15 AM
Cleyver
Cleyver - avatar
0
❣🕊❣🕊❣🕊❣🕊❣🕊❣ *مجھے نہ کسی کا دل,نہ کسی کی جان چاہیے...❤* *دل کا حال جو سمجھ سکے,وہ انسان چاہیے...❤* ❣🕊❣🕊❣🕊❣🕊❣🕊❣ *💞تنھا اجنبی💞*
19th Aug 2019, 6:23 AM
Pathan Kumar
Pathan Kumar - avatar
0
What is the function of iframe?
21st Aug 2019, 4:55 AM
Otega
Otega - avatar