danprhayes
04-22-2003, 10:51 AM
Hi
I am retrieving the value of a cookie and want to display a different html page depending on the value of that cookie....
var checkvalue = get_Cookie('navigation')
if (checkvalue == "advanced")
document.write("<p>you selected advanced.</p>")
else if (checkvalue == "simple")
document.write("<P>you selected simple.</p>")
This works but I want all the html tags ie <HTML><BODY> etc not just a one liner so I can contruct either of two pages from this one page of code
NB: I dont want the code to direct to a different HTML page since I want this file to be an include page.
Hope that makes sense.
Daniel
I am retrieving the value of a cookie and want to display a different html page depending on the value of that cookie....
var checkvalue = get_Cookie('navigation')
if (checkvalue == "advanced")
document.write("<p>you selected advanced.</p>")
else if (checkvalue == "simple")
document.write("<P>you selected simple.</p>")
This works but I want all the html tags ie <HTML><BODY> etc not just a one liner so I can contruct either of two pages from this one page of code
NB: I dont want the code to direct to a different HTML page since I want this file to be an include page.
Hope that makes sense.
Daniel