i try use this method:
document.querySelector('body').setActive();
but have error:
TS2339: Property 'setActive' does not exist on type 'HTMLBodyElement'.
How i can fix then? Thanks
i try use this method:
document.querySelector('body').setActive();
but have error:
TS2339: Property 'setActive' does not exist on type 'HTMLBodyElement'.
How i can fix then? Thanks
You can't. The setActive()
method only appears on <iframe>
elements which shouldn't be used anyway:
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.