getting the anchor name.

wxdqz

New Member
helllp.. hehehe.. i know you guys are amazing.. :D

i'm trying to get my javascript to get the anchor name that the page is trying to access.. but i'm not sure if i'm doing this right or if it's possible.. this is for furthur script development.

i have this soo far.



<HTML>
<HEAD>
</HEAD>

<BODY>
testing
<br>

<SCRIPT LANGUAGE="javascript">
<!--

var anchorname=document.anchor

document.write.anchorname


// -->
</script>

</BODY>

</HTML>



this may look like simple code.. but basically i want to use the anchor name as a variable for furthur on in the script..
so that when i make a call like page.html#anchor that i can use that anchor as a variable.. does that make sense??


help :)
 
Back
Top