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

3
LINES

< > BotCompany Repo | #1003103 // ahref - make HTML link - synonym of href

JavaX fragment (include)

static S ahref(S link, O contents, O... params) {
  ret link == null ? str(contents) : href(link, contents, params);
}

Author comment

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: #1003103
Snippet name: ahref - make HTML link - synonym of href
Eternal ID of this version: #1003103/4
Text MD5: d20d522c3258f2f12eaef3f2276baa78
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-04 12:30:00
Source code size: 120 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 870 / 962
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1018544 - aname - make HTML anchor
#1022320 - ahref_unstyled - make HTML link without underline and color change (undecorated)
#1024388 - ahrefIf - make HTML link if condition is true (otherwise just contents)
#1029614 - ahref_possiblyTargetBlank
#1031704 - ahrefSame - make HTML link with same text as the link
#3000382 - Answer for ferdie (>> t = 1, f = 0)