Hi all,
the simple script to print the current URL is fine:
<script language="JavaS cript">
<!--
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:
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="JavaS cript">
<!--
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:
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.
Comment