Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1029614 // ahref_possiblyTargetBlank

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3101L/18K).

sS ahref_possiblyTargetBlank(S link, O contents, bool targetBlank, O... params) {
  ret ahref(link, contents, targetBlank ? paramsPlus(params, target := "_blank") : params);
}

sS ahref_possiblyTargetBlank(bool targetBlank, S link, O contents, O... params) {
  ret ahref_possiblyTargetBlank(link, contents, targetBlank, params);
}

Author comment

Began life as a copy of #1003103

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029614
Snippet name: ahref_possiblyTargetBlank
Eternal ID of this version: #1029614/4
Text MD5: 435ab251bdb099879a4fe5984de2edab
Transpilation MD5: 9079dfd6794c7e1e782f8d6b9ea05b35
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-19 18:21:02
Source code size: 336 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 155 / 247
Version history: 3 change(s)
Referenced in: [show references]