vadnica-logo
X

document.getElementById(id)

The getElementById() method returns the element whose id matches the supplied value, or null if no such element exists. It is one of the most frequently used DOM methods because it is needed virtually every time we want to read from or modify the document.

EXAMPLE
RESULT

Thank you for visiting! Adding privacy policy.

© 2024 All rights reserved.

Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.