Hi,
I use a snippet of JS in the header section of a dreamweaver template. When
people email each other site links to this site, it forces a "jump" out of
"trapped frames" like in hotmail, etc. What I am wondering, At present I
have the SELF.PARENT.LOC ATION set to the site's home page.
Is there any JS function that will capture the current path/filename for the
current page, so that I can automatically "jump" to the actual "current"
page, rather than the site's home-page?
Here is the snippet I use:
<SCRIPT language="JavaS cript1.1">
<!--
setTimeout ("changePage()" , 30);
function changePage() {
if (self.parent.fr ames.length != 0)
self.parent.loc ation=http://www.mysite.com/index.htm; }
// -->
</script>
thanks for any help with this!!
Axel
I use a snippet of JS in the header section of a dreamweaver template. When
people email each other site links to this site, it forces a "jump" out of
"trapped frames" like in hotmail, etc. What I am wondering, At present I
have the SELF.PARENT.LOC ATION set to the site's home page.
Is there any JS function that will capture the current path/filename for the
current page, so that I can automatically "jump" to the actual "current"
page, rather than the site's home-page?
Here is the snippet I use:
<SCRIPT language="JavaS cript1.1">
<!--
setTimeout ("changePage()" , 30);
function changePage() {
if (self.parent.fr ames.length != 0)
self.parent.loc ation=http://www.mysite.com/index.htm; }
// -->
</script>
thanks for any help with this!!
Axel
Comment