show and hide of a i-frame content page

puneet kumar
puneet kumar used Ask the Experts™
i have button and a i-frame in my jsp page but i want to show that i-frame button while click on that button . when i click on button i-frame content should visible
else hide.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2014
<!DOCTYPE html>
    document.getElementById("YOUR-BUTTON-ID").addEventListener("click",function() {
        var iframe = document.getElementByid("YOUR-IFRAME-ID"); = "block";

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial