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


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




It's very fantastic, cool, amazing.😄


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


What is the function of iframe?