static S hrefBlank(S link, O contents, O... params) { ret empty(link) ? strOrEmpty(contents) : tag("a", contents, concatArrays(new O[] { href := link, target := "_blank" }, params)); }
Began life as a copy of #1002639
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002640 |
Snippet name: | hrefBlank - make HTML link with target=_blank |
Eternal ID of this version: | #1002640/5 |
Text MD5: | df45d877ab3ef6b4ac8e3f6e99af4e63 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-02 02:05:10 |
Source code size: | 188 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 739 / 783 |
Version history: | 4 change(s) |
Referenced in: | #1003084 - targetBlankLink - synonym of hrefBlank #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1031933 - targetBlank_noFollow - target blank link with nofollow #3000382 - Answer for ferdie (>> t = 1, f = 0) |