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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute JS code when page is displayed

Status
Not open for further replies.

SneezeDragon

Programmer
Mar 6, 2002
13
0
0
US
I'd like to execute some JavaScript code when a page is *displayed*, not just after it's loaded. This includes when the user navigates back to it through the history.

I don't want to re-load the page; it needs to stay cached. Unfortunately, the onload event won't work for this, and neither will sticking JS code at the bottom of the page.

Any ideas?

Thanks!
 
Duh. It does work; I was just doing something awfully stupid. Never mind.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top