I’ve created a popup I’m desperately trying to close. It’s just not
working. I’ve got a simple form_for with a submit tag. I put in an
onclick method and that’s not doing it. Can anyone help?
I’ve created a popup I’m desperately trying to close. It’s just not
working. I’ve got a simple form_for with a submit tag. I put in an
onclick method and that’s not doing it. Can anyone help?
Maybe this is the case. You click the submit button, it bring you to
the new page. So the javascript does not work because you are already
in new page. You should put window.close function in the new page
(your missing template).