Skip to content Skip to sidebar Skip to footer

Javascript: Refresh Iframe Browser Specific

i need a solution for refreshing an iframe which works for different browsers. can you confirm, that the code i found on the internet is correct or give me the correct javascript?

Solution 1:

In Chrome version 23.0.1271.97 i just tried using

document.getElementById('iframeId').contentWindow.location.reload()

and it works. You could try:

document.getElementById('iframeId').contentWindow.location.href = document.getElementById('iframeId').contentWindow.location.href

Post a Comment for "Javascript: Refresh Iframe Browser Specific"