Forum Moderators: open

Message Too Old, No Replies

Combining the window.location with an href

         

bmof

4:11 pm on Oct 13, 2005 (gmt 0)



I'm trying to assemble a URL that includes the current javascript window.location. It seems I can do either alone, but not combined.

I'm sure this is simple, but I'm stumped.

<xsl:element name="a">
<xsl:attribute name="href">http://foo.com/bar.asp?redir=
<script>document.write(window.location);
</script>
</xsl:attribute>
Click Here
</xsl:element>

Thoughts?