i have an loop in javascript function.
when else condtion is satisfied inside loop then it go to another
jsp page. by this
document.form2.submit();
where form2 is perfectly defined in same jsp page
now from another jsp page i perform what i want
problem is:---how can we return back from that page to previous page javascript function then loop continues.