Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
195
rated 0 times [  198] [ 3]  / answers: 1 / hits: 17581  / 12 Years ago, fri, november 23, 2012, 12:00:00

I run a simple html file with an iframe and javascript working fine in IE Browser, but it is not working in other browsers like safari,firefox.



In safari the Iframe box is only displayed, but the content in that is not shown.



Please clarify why safari doesn't support it? what are the alternatives for iframe?


More From » html

 Answers
8

You can use <embed> tag ,which behaves like iframe



Here is example



<!doctype html >
<html >
<head>
<title>embed Tag </title>
</head>
<body>
<p><b>Example of embed tag in HTML5.</b></p>
<embed src=http://www.w3schools.com height=300 width=300 />
</body>
</html>


While you can also use iframes on all browser



Here is example



<!DOCTYPE html>
<html>
<body>

<iframe src=http://www.w3schools.com>
<p>Your browser does not support iframes.</p>
</iframe>

</body>
</html>


Are you trying to do any different for iframe ?


[#81848] Wednesday, November 21, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
julian

Total Points: 159
Total Questions: 105
Total Answers: 94

Location: Chad
Member since Mon, Dec 5, 2022
1 Year ago
;