4 ms·var links = document.links is a more efficient way to get an array of all of the links on a page.by sgoel 14y agovar links = document.links is a more efficient way to get an array of all of the links on a page.