<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>javascript &#8211; Extreme Web Designs</title>
	<atom:link href="https://theextremewebdesigns.com/blog/tag/javascript-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://theextremewebdesigns.com/blog</link>
	<description>Web Design and Web Development</description>
	<lastBuildDate>Sat, 24 Mar 2012 01:11:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>
<site xmlns="com-wordpress:feed-additions:1">156673191</site>	<item>
		<title>Remove Iframe html using Javascript</title>
		<link>https://theextremewebdesigns.com/blog/remove-iframe-html-using-javascript/</link>
					<comments>https://theextremewebdesigns.com/blog/remove-iframe-html-using-javascript/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 24 Mar 2012 01:11:44 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[javascript-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=404</guid>

					<description><![CDATA[Let&#8221;s say that you are showing an iframe in a page. If you notice, you will see that the contents of the page will also be shown in the iframe by default. Using this simple 1 line trick, you can remove iframe html using javascript. How To Remove Iframe html using Javascript Example Let&#8217;s assume that [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Let&#8221;s say that you are showing an iframe in a page. If you notice, you will see that the contents of the page will also be shown in the iframe by default. Using this simple 1 line trick, you can <strong>remove iframe html using javascript</strong>.<span id="more-404"></span></p>
<h2>How To Remove Iframe html using Javascript Example</h2>
<p>Let&#8217;s assume that we have an IFrame with ID &#8220;myframe&#8221;. We can use the .setAttribute() method to completely remove the html contents from the Iframe.</p>
<h3>Example: Remove Iframe html using Javascript</h3>
<pre class="lang:xhtml decode:true">//HTML:

&lt;iframe id="myframe" src="http://www.google.com"&gt;&lt;/iframe&gt;

//Javascript:

document.getElementById( 'myframe' ).setAttribute( 'src', '' );</pre>
<p>When you use the above code in your own web page and run it, you will see the contents of the iframe cease to exist. Easy, eh?</p>
<h5>Your Turn!</h5>
<p>Do you know of any other ways of using <em><strong>JavaScript to remove iframe html</strong></em>? Feel free to share by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/remove-iframe-html-using-javascript/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">404</post-id>	</item>
	</channel>
</rss>
