form post in Chrome extension popup not doing anything
I am making a chrome extension and I have a popup.html page that contains a form with method post, it does not do anything when opened using开发者_StackOverflow the popup button however if the page is opened as an options page or just a normal html page, the form posts fine and the new page is loaded.
so something in the popup is preventing the form from working.
I cannot figure out why, anyone know how to fix/work around this ?
You need to do an AJAX POST request. A quick Google search brought up this post.
Maybe an answer duplicate of Paypal Button For Google Chrome Extension.
Just in case that somebody arrives here, try adding a simple target="_blank" to your tag (Works with Paypal donate buttons, for example)
精彩评论