jquery - Preventing parent page reloading when exiting modal -
i have form has popup when button pressed on page. if filled in form, have not submitted posting yet , press popup button, when go exit modal form had filled in goes blank. looking prevent this. dont want have post when click popup button, want smoothly exit modal when go parent page unsubmitted filled in data still there. code using have worry have onclick event this:
onclick="location.href=parent.location"
that easiest solution found exit modal has 1 problem stated above.
thanks.
so, after not getting answers decided make note saying "esc exit". works fine. makes sense if able must able same on button click.
Comments
Post a Comment