开发者

form post in Chrome extension popup not doing anything

开发者 https://www.devze.com 2023-04-07 14:53 出处:网络
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

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消