Closed bob2517 closed 9 months ago
Create a new "open" command to align to JS, and allow specifying the target window per the JS rules.
https://developer.mozilla.org/en-US/docs/Web/API/Window/open
Ie. allow things like noreferrer and all those things.
Now on branch, same syntax as JS, with up to 3 strings eg.
button:click {
open: "https://activecss.org" "_blank" "popup,noreferrer,noopener,width=500,height=500";
}
See MDN link in previous comment for instructions.
Note that doing a straight link in HTML is superior as a general rule, and adding a:not([target="_blank") { prevent-default: true; }
(or a:not(.externalLink) { etc.
) is best if you need a link without a popup window, as it's the shortest route to cater for every external link on a website.
Closing pending release.
As per title. Should be able to get that onto the latest branch at the weekend.