Opening different iframe depending on different button click
问题 i am trying to open different iframe windows by assigning iframe src to a variable , when the page initially loads it should show only two buttons on the page , when i click on the button , an iframe should get loaded depending on which button is pressed , i tried doing something like this to create buttons and creating iframes , but it is not working <button id="b1">Button 1</button> <button id="b2">Button 2</button> <iframe scrolling="no" src="whatnext"> </iframe> <script> var b1 = document