Reputation:
I have a web page https://wpt1.ide4.bid/
The source code and Inspected code via chrome are different.
Is there any way to get inspected code via js after page load or 5 seconds and store it?
How would i achieve this?
currently i am not able to get the javascript working because it saves source code.
document.getElementById("main-region").textContent.indexOf('Thank You For scheduling 22')
Any help will be aprreciated!
Upvotes: 0
Views: 119
Reputation: 765
You can use the below solution to get the html of iframe once page is loaded -
document.addEventListener("DOMContentLoaded", function(event) {
// Code to execute when all DOM content is loaded.
var iframeInnerHtml = document.querySelector('.calendly-inline-widget > iframe').contentWindow.document.body.innerHTML;
console.log(iframeInnerHtml);
});
Upvotes: 1