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

3
LINES

< > BotCompany Repo | #1022003 // hbuttonOnClick_returnFalse - make <button> tag with onClick, add "; return false;"

JavaX fragment (include)

static S hbuttonOnClick_returnFalse(S text, S onClick, O... params) {
  ret hfulltag("button", text, paramsPlus(params, onclick := addSuffix(trim(onClick), ";") + " return false;"));
}

Author comment

Began life as a copy of #1018945

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022003
Snippet name: hbuttonOnClick_returnFalse - make <button> tag with onClick, add "; return false;"
Eternal ID of this version: #1022003/5
Text MD5: fd4218572dd0b2c6bd13e9dbf301772e
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-18 21:56:04
Source code size: 186 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 346
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030185 - ahref_js - link that executes javascript (don't make link if js is empty)