OpenIframe 1.0.0
Build <iframe> and ignore X-Frame-Options, Content-Security-Policy, X-Content-Type-Options, X-Xss-Protection etc. Normally such headers prevent embedding a web page in an <iframe>
<script src="https://cdn.jsdelivr.net/gh/ChechaValerii/openiframe/openiframe.es6.js"></script>
Creates an instance of OpenIframe.
| Name | Type | Description | |
|---|---|---|---|
| options | Object |
||
| options.container | DOM string |
- css selector or DOM element | |
| options.width | Number |
- iframe width | |
| options.height | Number |
- iframe height | |
| options.append | Boolean |
- append iframe to container, prepend by default | |
| options.src | String |
- iframe src |
new OpenIframe({
container: '#header',
height: 600,
width: 800
src: 'https://example.com',
append: true
});- iframe Element