P
Peter UG
Hi all,
the simple script to print the current URL is fine:
<script language="JavaScript">
<!--
document.write(document.URL)
//-->
</script>
but as my cgi-script receiving the URL referrer needs the actual page name,
anyone browsing a top level directory without the index.html as in:
http://site.com/about/
and the cgi-script will not work.
So how can this javascript be done so if the document.URL end in / the
script adds index.html.
Any help from experts really appreciated!
Peter.
the simple script to print the current URL is fine:
<script language="JavaScript">
<!--
document.write(document.URL)
//-->
</script>
but as my cgi-script receiving the URL referrer needs the actual page name,
anyone browsing a top level directory without the index.html as in:
http://site.com/about/
and the cgi-script will not work.
So how can this javascript be done so if the document.URL end in / the
script adds index.html.
Any help from experts really appreciated!
Peter.