...

View Full Version : IFrame Refresh



Scrowler
08-20-2003, 10:20 AM
how do I refresh an iframe using onclick="" ?
<a href="page.asp" onclick="document.fact.refresh()">link</a>

? that's my code so far, and fact is the name of my iframe.. I want it to refresh it and goto the link aswell.

Just so you know, I have two iframes, one for content and one for facts, which I want to change at regular intervals (page change)

Thanks in advance

fredmv
08-20-2003, 10:27 AM
<a href="page.asp" onclick="document.frames['fact'].window.location.reload();">Link.</a>

glenngv
08-20-2003, 10:33 AM
or
<a href="page.asp" onclick="top.frames['fact'].location.reload();">Link</a>

Scrowler
08-20-2003, 08:03 PM
thanks :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum