learning-area
learning-area copied to clipboard
Make mailto anchor work inside iframe
In Chrome Version 101 (MacOS Monterey and default mail app) clicking on the mailto link caused an error (iframe) in the first interactive example:
In Firefox it seemed to work without any problems, in Safari the result was strange: the first time it worked, the second time not.
My solution is giving the <a>
element the attribute target="_blank"
. Maybe there is a better solution?
Note that the "note box" in this task has to be updated too in mdn/content. (just changing "The first link..." to "The links...")