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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML header objects

Status
Not open for further replies.

dfrankel

Programmer
Apr 23, 2002
19
US
Can you get HTML header objects with JavaScript? I want to know what the refferer page is, or whether GET or POST was used in a form.
 
the referrer can be gotten by doing :
Code:
document.referrer

i dont think you can tell what the form type was, but you can kind of check and assume if it isnt this then its that:
Code:
<script language='javascript'><!--
alert((document.location.search) ? 'GET method' : 'POST method');
--></script>

hope it helps &quot;Those who dare to fail miserably can achieve greatly.&quot; - Robert F. Kennedy
So true..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top