|
|
Q505 How can I reload the current page and change the background and foreground colors?
irt.org | Knowledge Base | JavaScript | Cookie | Q505 [ previous next ] Q505 How can I reload the current page and change the background and foreground colors?Cookies would be one way, another would be to use the locations search property. This is likely to work in more cases then using a cookie, which are sometime rejected by visitors. Change the location to the current location plus some extra stuff. For example, if the current page is apage.html, and the colors to use are black (#000000) for the text and white (#FFFFFF) for the background then change the page location using:
Internet Explorer 4 allows you to dynamically alter the color properties, but the above offers a browser compatiable solution. |
-- div -->
|