Determine Which Link Is Clicked

[Total: 0    Average: 0/5]

This link shows how to determine which link sent a user to a page.

Body Code:

document.write(">> "+document.location+" <<");
Order: <img onClick="subform('order');"    src="" alt="See order history"><BR>
History: <img onClick="subform('shipment');" src="" alt="See shipment history"> 
Of course you would change the action to be your page
<form method="get" name="hist" action="" onsubmit="alert(document.hist.butt.value)"> 
<input type="text" name="butt" value=""> 
<SCRIPT language="javascript1.1"> 
function subform(temp) { 

Times Viewed: 2

Leave a Reply

Your email address will not be published. Required fields are marked *