stephenbruceburch
Technical User
I have a function getBGColor() that checks cookies to set a variable bgcolor (in form "#000000"
and if the user doesn't have cookies it sets the variable to a default color. Can I use this function in the HTML
ie
<body bgcolor="getBGColor();">
or
<body bgcolor=getBGColor();>
or
<body bgcolor="getBGColor()";>
I have tried all three and they don't seem to work but the problem might be somewhere else. I was hoping someone could point me to the right syntax - if it exists so I can continue to debug the rest of the code. thanks
ie
<body bgcolor="getBGColor();">
or
<body bgcolor=getBGColor();>
or
<body bgcolor="getBGColor()";>
I have tried all three and they don't seem to work but the problem might be somewhere else. I was hoping someone could point me to the right syntax - if it exists so I can continue to debug the rest of the code. thanks