I'm trying to retrieve the parameters of a onclick attribute into a webpage.
So far i've been able to retrieve the function with all the parameters using nodeValue listing.
But once there i'm wondering how to get some parameters of the function.
This code:
var action = document.getElementById('action_3')
for (var att, i = 0, atts = action.attributes, n = atts.length, arr = []; i < n; i++){
att = atts[i];
console.log(atts.onclick.nodeValue);
}
gets me this result
cba.facture.controllers.factureListeController.createFactureListeTooltipActionDialog('73928462',
'action_3_TooltipDialog',
'action_3',
'190px', 'Télétransmise', '1', 'false', '0',
'7622', '14962', 'Télétransmise', '')
Now i'm trying to retrieve the parameters of the createFactureListeTooltipActionDialog, but i don't really know how..
question from:
https://stackoverflow.com/questions/65863695/retrieve-parameters-of-a-jsfunction-listed-into-a-nodelist 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…