1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Close an iFrame from within an iFrame

Discussion in 'HTML & Website Design' started by Marklaw01, Jul 11, 2017.

  1. #1
    I want to create a link to close an iFrame. I am using the following code to open the iFrame. Hope you can help.

    <a href="#" onclick="javascript:document.getElementById('proj').style.display='block';document.getElementById('close').style.display='block';" target="_self"><span style="color:#0000CD">My Text</span></a></u><span style="color:#0000CD"><sup>TM</sup></span>&nbsp;- Description.<iframe height="350" id="proj" src="http://www.google.com/" style="display:none;" width="100%"></iframe>
    SEMrush
     
    Marklaw01, Jul 11, 2017 IP
    SEMrush