Hi,
I am using a web page with frames. I am writing a function for a visitor to email a friend the page URL. Since I use frames, the email function takes the URL of the parent window,which doesnt change,NOT the URL inner frame where the actual article is located.
I have used the code below,
script>document.write("<input type=\"hidden\" name=\"url\" value=\"" + opener.document.location.href + "\">"</script>, and it worked fine in IE, but not Netscape.
So I tried <script>document.write("<input type=\"hidden\" name=\"url\" value=\"" + parent.location.href + "\">"</script>,
but this again gives the URL of the parent frame, or in some cases, the URL of the page with the email.html file.
I am using CFMAIL to send out the email.
Could anyone help, as to get the URL of the inner frame...
Thanks
Ahksar
I am using a web page with frames. I am writing a function for a visitor to email a friend the page URL. Since I use frames, the email function takes the URL of the parent window,which doesnt change,NOT the URL inner frame where the actual article is located.
I have used the code below,
script>document.write("<input type=\"hidden\" name=\"url\" value=\"" + opener.document.location.href + "\">"</script>, and it worked fine in IE, but not Netscape.
So I tried <script>document.write("<input type=\"hidden\" name=\"url\" value=\"" + parent.location.href + "\">"</script>,
but this again gives the URL of the parent frame, or in some cases, the URL of the page with the email.html file.
I am using CFMAIL to send out the email.
Could anyone help, as to get the URL of the inner frame...
Thanks
Ahksar