1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iframe on first click

Discussion in 'HTML & JavaScript' started by borge009, Jun 8, 2011.

  1. borge009

    borge009 Newbie

    Joined:
    Apr 24, 2010
    Messages:
    4
    Likes Received:
    1
    just want to ask how to enable an iframe to popup when a user clicks anywhere on the page or click for the first time? Thanks
     
  2. ArSiHaSi

    ArSiHaSi Newbie

    Joined:
    Nov 18, 2010
    Messages:
    4
    Likes Received:
    2
    Code:
    <body onclick="document.getElementById('myIframe').style.display='';">
    <iframe id="myIframe" style="display: none;" />
    untested.
     
    • Thanks Thanks x 1