Jan 3, 2003 #1 dfrankel Programmer Joined Apr 23, 2002 Messages 19 Location 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.
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.
Jan 3, 2003 #2 elegidito Programmer Joined Jan 19, 2002 Messages 358 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 "Those who dare to fail miserably can achieve greatly." - Robert F. Kennedy So true.. Upvote 0 Downvote
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 "Those who dare to fail miserably can achieve greatly." - Robert F. Kennedy So true..