Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between IFrame and Frame?

Tags:

html

iframe

frame

Looking at options for embedding the 3D Secure page inside my own order form, I came across the following:

"Some commerce sites will devote the full browser page to the authentication rather than using a frame (not necessarily an iFrame, which is a less secure object anyway)."

from http://en.wikipedia.org/wiki/3-D_Secure

Can someone give me the lowdown as to why iframes are less secure, and cause problems, as opposed to normal frames? And what are the basic differences?

The way I see it, iframe is the way to go.

like image 959
Duncan Avatar asked Jul 03 '09 12:07

Duncan


People also ask

What is the difference between frame and iframe in selenium?

Difference between Frame and iFrame in SeleniumA frame is used to divide a page into multiple sections, with new content on each section. An iFrame is used to embed the content of the external websites into the web page, in order to avoid cross-site scripting issues.

What is frame and Iframe in HTML?

The iframe in HTML stands for Inline Frame. The ” iframe ” tag defines a rectangular region within the document in which the browser can display a separate document, including scrollbars and borders. An inline frame is used to embed another document within the current HTML document.

Why you shouldn't use IFrames?

Iframes Bring Security Risks. If you create an iframe, your site becomes vulnerable to cross-site attacks. You may get a submittable malicious web form, phishing your users' personal data. A malicious user can run a plug-in.

Are IFrames still used in 2021?

<iframe> is not an obsolete or deprecated tag. It's still widelly used in the web, mostly for media purposes.


1 Answers

The difference is an iframe is able to "float" within content in a page, that is you can create an html page and position an iframe within it. This allows you to have a page and place another document directly in it. A frameset allows you to split the screen into different pages (horizontally and vertically) and display different documents in each part.

Read IFrames security summary.

like image 176
rahul Avatar answered Sep 19 '22 13:09

rahul