title: Javascript - get the form if of current control location
body: <p>I have a form and it has 4 input elements. if the user enters just two entries and clicks anywhere on the screen (out the form)...i would like to save the details..it is like auto-save.</p>
  
  <p>I have id of my form..i want to compare with form id of the current control on the screen..so that i can ssave the data if both form ids are different..</p>
  
  <p>could you please tell me how can i get the form id of current control location on screen (some times the control could be outside the forms..in that case form id of current cotrol location would null)... but how can i determine that in javascript.</p>
  
  <p>please suggest...</p>
  
  <p>Many Thanks in advance,
  Jack.</p>