I need to automate what a users does when clicking on <A HREF="whatever">. This will be used to refresh a page. Any ideas on how to do this?

Thanks!
Greg

Recommended Answers

If you want to programmatically perform a page refresh, the JavaScript code is "window.refresh()".

You need to tie that code to a specific Event. I can't advise on which element/event without knowing more about your situation.

Jump to Post

All 4 Replies

If you want to programmatically perform a page refresh, the JavaScript code is "window.refresh()".

You need to tie that code to a specific Event. I can't advise on which element/event without knowing more about your situation.

Thanks for the quick reply. Any ideas on how to do that in JSCRIPT? My environment is Microsoft Project, creating a Project Guide.
Greg

You have to define the "that" in your "how to do that" phrase :). Give me a step-by-step from a user's perspective. They would see what? Then do what? What's supposed to happen then?

I can only speak with any degree of authority about JavaScript. The JSCRIPT and VBScript Microsoft aberrations aren't my "thing".

try this
<body onload="location.href='yourpage.htm' ";>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.