Assistance with script accessing iframe content please
I have the following script. I need this script to access via an iframe on
my web page. Can anyone see what I'm doing wrong? The script works perfect
when not using an iframe, but not when using one.
It is essential I use an iframe, unfortunately. :/
<script type="text/javascript">
setTimeout(function() { window.location.reload(); }, 1000); // 1 seconds,
e.g.
function getContentFromIframe(iFrameName)
{
var myIFrame = document.getElementById(iframeId);
var content = myIFrame.contentWindow.document.body.innerHTML;
$(document).ready(function() {
$('a[href*="gamesmanship"]:contains("ñŸ")')
.closest('tr').find('.liverpool').click();
});
$(document).ready(function() {
$('a[href*="gamesmanship"]:contains("👿")')
.closest('tr').find('.liverpool').click();
});
$(document).ready(function() {
$('a[href*="gamesmanship"]:contains("😈")')
.closest('tr').find('.liverpool').click();
});
}
</script>
thanks in advance.
No comments:
Post a Comment