PDA

Click to See Complete Forum and Search --> : javascript anchors


kryptonite0110
February 14th, 2004, 06:26 PM
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...

phase1retaliate
February 14th, 2004, 11:39 PM
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>

phase1retaliate
February 14th, 2004, 11:42 PM
Ohhhhh. uhhh. I may get what you want. Go to this site:
http://medialab.di.unipi.it/doc/JavaScript/sejava07.htm

Hope this helps.

kryptonite0110
February 15th, 2004, 01:16 AM
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...

kryptonite0110
February 15th, 2004, 09:03 AM
I figured it out...