OnClick show iframe and then hide - Javascript jQuery

Javascript examples for jQuery:iframe

Description

OnClick show iframe and then hide

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-compat-git.js"></script> 
  <script type="text/javascript">
    $(window).on('load', function() {
$(document).ready( function() {
  $('#element').hide();
  window.setTimeout(function() {//from  w  ww. ja  v  a 2 s.  c  o m
    $('#element').show();
  }, 5000);
});
    });

      </script> 
 </head> 
 <body> 
  <div id="element">
    test 
  </div>  
 </body>
</html>

Related Tutorials