E pluribus unum
Newbie
- Dec 16, 2022
- 4
- 0
Hi, could you help me? From https://spazioweb.w3spaces.com/scroll_and_focus.htm I'm trying to scroll and focus to "N. inventario".
I have this script to focus the field, but I would like it to autoscroll about 2 cm above the position to which it leads:
focusme = document.querySelector('#DetailsOpen_Array04 > div > label:nth-child(2) > input');
focusme.focus();
I found https://gist.github.com/psdtohtml5/6215547googling, but I can't apply it to my case...
Thank you very much!
I have this script to focus the field, but I would like it to autoscroll about 2 cm above the position to which it leads:
focusme = document.querySelector('#DetailsOpen_Array04 > div > label:nth-child(2) > input');
focusme.focus();
I found https://gist.github.com/psdtohtml5/6215547googling, but I can't apply it to my case...
Thank you very much!