2. Determining if #anchor is in the URL.
An EE Expert was kind enough to explain check self.location for the anchor.tag using an onload event for the body...Also, I'm not sure if I need to insert this as another <body onload=...> in the body or in the head section.
I've found these 2 snippets of code but can't pull it together in a function so I'm not able to test it:
var MyPage=location.href.(/(.*)#.*/,"$1");
location.href=myPage+thisID
-----
or
<script type="text/javascript">
function jump (url) {self.location.hash = url)}
</script>
|