When you press the edit button, it opens a new window that's exactly the same as the former but editable. I want to be able to have the scroll position of the new window be the same as the original. How can I keep the scroll position the same? I think I need to use localStorage?
$tmpOnClickJs = <<<JAVASCRIPT
window.open('/views/record/edit/index.php?recordId={$this->recordId}');
JAVASCRIPT;
return <<<HTML
<i
id="editRecordIcon"
class="fas fa-edit fa-2x pointer m-2"
data-toggle="tooltip"
data-original-title="Edit"
data-container="body"
onclick="{$tmpOnClickJs}"
></i>
HTML;