window.location will act like a refresh - it is a command function that will reload your script every time is comes to that instance.
So it should loop with what you have...
You should be using javascript test is a styleid cookie is set, if not, then window.location to a script that does nothing but set this styleid cookie - then that script should come back to the test for the styleid cookie in the headinclude...
Get it ?
|