Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

What is alternate for iframe in html5. I dont need iframe concepts. Which browsers are support in alternative way.
Posted
Updated 2-Apr-15 1:14am
v2

alternative way for iframe in html5
AFAIK, there is no alternative of iFrame even in HTML5.

Though you can try alternative like loading the content at runtime using XMLHTTPRequest instead of using an iFrame.
 
Share this answer
 
Comments
keerthana.k 7-Jan-13 4:36am    
hi sandeep

can you send one example for xmlhttprequest. i am new this topic.what is the main purpose for using this.
Sandeep Mewara 7-Jan-13 5:42am    
Have a look here: http://stackoverflow.com/questions/8702704/alternative-to-iframes-with-html5
you can use <embed> element

<embed id="123" src="http://google.com" />

browser support

working fine in chrome ,safari and firefox

for firefox to work

<object data="url" type=text/html>
<embed src="url" id=123>
</embed>
</object>

or you can use div
 
Share this answer
 
v6

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900