BoulderBum
Programmer
How would I refresh a specific IFrame by name if I have, say, three IFrames in a page?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
window.iframeName.location.reload()
window.iframeName.location.reload([url=http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/reload.asp?frame=true]true[/url]);
window.iframeName.location.href = window.iframeName.location.href;
function refreshFrames()
{
if( window.ifXml != null )
window.ifXml.location.reload();
if( window.ifHtml != null )
window.ifHtml.location.reload();
if( window.ifXslt != null )
window.ifXslt.location.reload();
}
...
<body onload="refreshFrames()">
<body onload="window.myI.location.reload()">
<iframe name="myI" src="test.html"></iframe>
</body>
<script>refreshFrames()</script>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="-1">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
[COLOR=black yellow]<%[/color]
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
[COLOR=black yellow]%>[/color]