Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- a variable inHTML?
February 14, 2007, 4:52 pm
rate this thread
pseudo such as:
<input type=text value=color>
and have the word White as the value that appears in the textfield
on the browser's page. If that can't be done purely in HTML, how
best to work around? Thanks.
My intended purpose is to declare variables at the top of the code,
where easily visible and available to change, and have the effects
work later on throughout the working code.
Re: a variable inHTML?
Sort of (macro expansion through server-side scripting), but it's a
rare occasion when that's of real practical use.
What's your _real_ purpose for doing this? If it's to have some sort
of indirection between context and presentation, then CSS and the HTML
class attribute already does pretty much all you could want.
Otherwise tell us what you need to achieve (rather than how you've
already decided it ought to be implemented) and maybe we can give a