0

If I write in Chrome console:

let btns =  document.getElementsByName('btn_desktop');
let btnLast = btns[btns.length - 1];
jQuery.data(btnLast).actions;

I get the following result in the Chrome console:
[{\"oper\":\"viewLink\",\"link\":\"here link"}]

If I run same script through sender.js after clicking alt+h then I get the result undefined
How can I get result like in console?

human
  • 1
  • 1
  • 2
    Can you share the code of sender.js? and also your HTML? – painotpi May 15 '21 at 10:44
  • sender.js contains same like console. It's same. Sorry, I cant share HTML cause that's product of bank. I signed a non-disclosure agreement :( "btn_desktop" has jQueryID, for example jQuery220038880947233794342 Through jQueryID I can get a link to page of client of bank. If runs code directly in Chrome terminal - jQueryID found. If runs from file .js - undefined – human May 15 '21 at 15:43

0 Answers0