Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1768 How can I accesss the CGI variable REMOTE_USER from JavaScript?

You are here: irt.org | FAQ | JavaScript | Misc | Q1768 [ previous next ]

The following works only in you use CGI to output the REMOTE_USER value in the HTML back to the browser:

<p align=center>
<br>

<font size="4">You are logged on as

<script type="text/javascript">
user = "<!-- #echo var="REMOTE_USER" -->";
document.write("'" + user + "'")
</script>

</font>
</p>

©2018 Martin Webb