I did something similar but different way back when I first started doing web stuff - except with client side server pull. My approach was to use a timer to reload an empty sub-frameset that wouldn't show up in the browser's display but served as a vehicle for Javascript.
Makeshifts last the longest.