I've run into a tricky issue with my assignment, which involves creating a feedback form using HTML and CSS that submits via a mailto link. I've written up my code, and it works perfectly in Microsoft Edge, as it opens a Gmail tab when I submit the form. However, in Google Chrome, nothing happens when I try to use the same form. I've checked the protocol handlers in Chrome to make sure it's set up to allow popups and mailto links, but that hasn't resolved the issue. Interestingly, mailto links work fine when they're not wrapped in a form, like in the examples I found on W3Schools. Has anyone experienced a similar problem or knows of a workaround?
1 Answer
It sounds like Chrome might be blocking mailto forms for security reasons, and it’s actually not considered the best practice to use mailto with a form action. I suggest looking into handling form submissions with JavaScript instead if you can, but I know you're focused on HTML and CSS for your assignment. You might want to double-check Chrome's settings for handlers and popups to see if there's anything being blocked.
Yeah, I get that! But considering your class restrictions, maybe check if there's a forum or documentation that specifically discusses Chrome's limitations with mailto in forms? You might find more insights there.