Connecting Tech Pros Worldwide Help | Site Map

HTML/JS question

Familiar Sight
 
Join Date: Sep 2007
Posts: 140
#1: Sep 21 '07
If I want to added a script to some HTML to make conditional output, do I just surround the HTML with the Script and do Document.writes(<TD>aVariable</td>) if I want to use if statements to set the variable?

Our in-house HTML specialist is very confusing, and went off in many tangents when I asked him this.

He said something like do the HTML first, then put the script at the bottom, but for the life of me, I can't see how this would work if the values in the HTML are dependant on the Javascripts if statements...

Thanks,
Sitko.
Familiar Sight
 
Join Date: Sep 2007
Posts: 140
#2: Sep 21 '07

re: HTML/JS question


Nevermind. I figured it out.
Death Slaught's Avatar
Site Addict
 
Join Date: Aug 2007
Location: Tennessee
Posts: 952
#3: Sep 21 '07

re: HTML/JS question


Go here you should find what your looking for and alot more.

Hope it helps, Death
Reply