Forum Moderators: open
What I am trying to do is replace the URL string that the script is on with the value in a cookie. Why you ask? Because I'm new to javascript and I m trying to learn the syntax and the functions included in this script were of interest to me. Trying little scripts like this help me learn.
I appreciate any help anyone can give me.
<script language=javascript type="text/javascript"><!--
var myvarible = readCookie(myCookie);
s = new String(document.URL);
document.write(s);
document.write("<br>becomes<br>");
s = s.replace(myvarible, document.URL);
document.write(s);
</script>