Aptitude (12) ASP.NET (2) Automata (4) Browser (1) C (5) C# (1) C++ (10) Code (3) CSS (1) Data Structure (1) DATABASE (3) HTML (1) java (43) JSP (1) math (1) MySql (8) other (6) php (3) Servlet (3)

Wednesday, 20 August 2014

Hide iframe element with id

<script>  function myFunction()  {  //alert("Page is loaded");  var iframe = document.getElementById('myFrame');  var frameDoc = (iframe.contentDocument || iframe.contentWindow.document);   frameDoc.getElementById('j_id0:SiteTemplate:j_id16:j_id17:j_id25:j_id26:j_id259').style.display = 'none';   //frameDoc.getElementById('j_id0:SiteTemplate:j_id16:j_id17:j_id25:j_id26:j_id67').style.display = 'none';      //alert("Page is loadedagain ");  }  </script>

    
<body onload="myFunction()">            <iframe id="myFrame" src="http://fullsb-aurea.cs16.force.com/internal/articles/en_US/Article/{!pkbCon.theKad.urlName}?l=en_US&fs=Search&pn=1" width="800" height="1000" ></iframe>                     </body>



No comments:

Post a Comment