how do you create anchors in javascript? I just started getting really into javascript and my book doesnt cover anchors in the javascript code. I need conditionals on whether anchors exist or not, and html alone doesn't support this...
Printable View
how do you create anchors in javascript? I just started getting really into javascript and my book doesnt cover anchors in the javascript code. I need conditionals on whether anchors exist or not, and html alone doesn't support this...
I don't really get what you mean. All the commands are anchors. Can you explain a little bit more?
<SCRIPT LANGUAGE="JAVASCRIPT>
blah blah blah
</SCRIPT>
Ohhhhh. uhhh. I may get what you want. Go to this site:
http://medialab.di.unipi.it/doc/JavaScript/sejava07.htm
Hope this helps.
what i am trying to do would be to change a links text or create a new one inside a script. i need conditionals on whether a link is present or not and you can't do that in html alone. The only other way to do this is to reload a new page whenever these conditionals take place, but i don't really want to do that... thanx in advance...
I figured it out...