Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can this code be run without the a href?

Status
Not open for further replies.

dlkraft

Programmer
Dec 5, 2000
47
US
The link below does just great at reloading the parent frame.

However, I would like the code to be run without the user being required to click the link.

Can you help?

<A HREF="javascript:window.parent.frames[2].location.reload()">Reload</A>
 
Where ever you want to trigger the reload, use this:
Code:
<script type"text/javascript">
window.parent.frames[2].location.reload();
</script>

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top