iframe to html:Useful in posting facebook’s fan page on your blog/website

Once you create a facebook fan page for your blog/article, you will get a iframe code to embedded into your blog so when people like your article, they will become your fan itself from your blog and they will get updated from your new post as well.

Nowadays,Facebook fan page is a key success to promote any business/blogs/website. But, main problem is that some script/website/forum does not accept iframe code, mostly all they accept is HTML code.

Today’s post is about How to Convert iframe code to HTML code?

Iframe code for Yahoo!!!all in One is :

<iframe src=”http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FYahoo-all-in-One%2F202733349757108&amp;width=292&amp;colorscheme=light&amp; show_faces=true&amp;stream=true&amp;header=true&amp;height=427″

scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:292px; height:427px;” allowTransparency=”true”></iframe>

Now I have to change this code to HTML: for this I need to add

<html>

<body>

<iframe src=”http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FYahoo-all-in-One%2F202733349757108&amp;width=292&amp;colorscheme=light&amp;

show_faces=true&amp;stream=true&amp;header=true&amp;height=427″ scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:292px; height:427px;” allowTransparency=”true”></iframe>

<input

onclick=”javascript:alert(document.all.myFrame.innerHTML)”>

</body>

</html>

That’s it! In short you have to add the following syntax.

<html>

<body> your iframe code <input type=”button”

onclick=”javascript:alert(document.all.myFrame.innerHTML)”>

</body>

</html>

 

PS: This is my older post but due to some error which I had mentioned in my previous post about getting Visual tab , I’m posting this article again.:)

Pin It

Get Latest Tutorials and News straight into your inbox. Enter your email address, hit "Subscribe" button and confirm your email:

Delivered by FeedBurner

Trackbacks

  1. […] iframe to html:Useful in posting facebook’s fan page on your blog/website. Share this:TwitterFacebookLike this:LikeBe the first to like this post. […]

Speak Your Mind

*