The Mudcat Café TM
Thread #119085   Message #2579908
Posted By: olddude
02-Mar-09 - 10:20 PM
Thread Name: Tech: Websites - forcing a page refresh
Subject: RE: Tech: Websites - forcing a page refresh
see post above on link refresh
JavaScript Refresh
The preferred page refresh/reload method uses a JavaScript technique that will replace the current page with each refresh in the visitor's page history.

This version uses an under-utilized method of dealing with cross browser and old version browser compatibility. It defines multiple JavaScript code blocks, where each JavaScript version block redefines the same function. Only the last version block that is supported by the browser will be used. So older browsers will use the "JavaScript" block, while later browsers will use either the "JavaScript1.1" or "JavaScript1.2" block depending upon the browser's capabilities. If the browser does not support JavaScript or has it disabled, the "noscript" block will be used.