learning-area icon indicating copy to clipboard operation
learning-area copied to clipboard

Make mailto anchor work inside iframe

Open glmvc opened this issue 2 years ago • 0 comments

In Chrome Version 101 (MacOS Monterey and default mail app) clicking on the mailto link caused an error (iframe) in the first interactive example: Screen Shot 2022-05-08 at 18 07 47

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...")

glmvc avatar May 08 '22 16:05 glmvc