MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / createSimpleButton

Function createSimpleButton

src/htmlutil.js:287–302  ·  view source on GitHub ↗
(name, id, text, oc)

Source from the content-addressed store, hash-verified

285};
286
287var createSimpleButton = function(name, id, text, oc) {
288 var b = null;
289 var i = null;
290
291 b = crc('input', 'button', name, id, 'bu', true);
292 b.name = name;
293 b.key = id;
294 b.type = "button";
295 b.value = text;
296
297 if (!b.inserted && oc) {
298 b.addEventListener("click", oc);
299 }
300
301 return b;
302};
303
304var createButton = function(name, id, text, oc) {
305 if (Helper.toType(id) === "Object") {

Callers

nothing calls this directly

Calls 1

crcFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…