I dunno where this goes, but as far as tech forums go, this is one of the best ones I know of..
So on with the request..
This has been utterly pissing me off for the past three days, as I can't seem to get it right.
This should be possible but I don't know how to work it correctly.
First, I want to point to any word typed in a specific area as a variable for conducting an if/then condition
I've set it up as:
< a name="mood">Pissed< /a>
(remove spaces in the codes)
The problem is now getting javascript to recognize "Pissed" or whatever mood I type in there as a variable or string needed for the next set of instructions.
I've tried about 50 ways and none of them seem to work.
Some examples are
document.mood
document.link.mood
document.links[mood]
document.anchor.mood
document.anchors[mood]
I've even tried setting it up as a form, but it still doesn't work.
I hope someone here knows what I'm trying to sya and can help..
I'm close to setting some houses on fire..
So on with the request..
This has been utterly pissing me off for the past three days, as I can't seem to get it right.
This should be possible but I don't know how to work it correctly.
First, I want to point to any word typed in a specific area as a variable for conducting an if/then condition
I've set it up as:
< a name="mood">Pissed< /a>
(remove spaces in the codes)
The problem is now getting javascript to recognize "Pissed" or whatever mood I type in there as a variable or string needed for the next set of instructions.
I've tried about 50 ways and none of them seem to work.
Some examples are
document.mood
document.link.mood
document.links[mood]
document.anchor.mood
document.anchors[mood]
I've even tried setting it up as a form, but it still doesn't work.
I hope someone here knows what I'm trying to sya and can help..
I'm close to setting some houses on fire..
Comment