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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -