Retrieve The Source Content Of An Iframe – get-iframe-src

Category: Javascript | April 28, 2023
Author:Maiquinho
Views Total:120 views
Official Page:Go to website
Last Update:April 28, 2023
License:MIT

Preview:

Retrieve The Source Content Of An Iframe – get-iframe-src

Description:

get-iframe-src is an extra-light JavaScript that allows developers to get an iframe’s source URL without manual inspection and extraction.

How to use it:

1. Download and import the index.js into the document.

<script src="js/index.js"></script>

2. Add the data-action=”get-iframe-src” attribute to the input field which accepts the iframe code.

<input type="text" id="iframeCode" data-action="get-iframe-src" />

3. That’s it. Just paste your iframe code to the input field and the library will automatically extract and copy the source content to your source code.

You Might Be Interested In:


Leave a Reply