Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

internet headers

Status
Not open for further replies.

rcusr

Technical User
Sep 4, 2002
26
GB
Hi All,

Is it possible to access the headers of the page using javascript? btw NOT the <head> tags... the bits like mimetype etc.

Thanks,


Richard
 
Apparently not in this thread.

Javascript is executed in the context of HTML not HTTP. I believe it would require some browser specific extension to supply it. I am not aware of any browser that does.


-pete
 
Here's a way, although you do need to have Server Parsed HTML activated on your webserver:

<script type=&quot;text/javascript&quot;>

var user=&quot;<!--#echo var=&quot;HTTP_SM_USER&quot;-->&quot;;
document.write(&quot;<H3> Welcome! You are logged in as &quot; + user);
document.write(&quot;</H3><BR>&quot;);

</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top