The info below contains that and other information to make your code compatible with older browsers if you want to use this JavaScript snippet in a website. Someone in the comments asked how how then can return only URLs containing “abc” or “defg”. This will open a separate window that only displays Chrome Developer Tools along with the extracted links. You can also click the Undock into a separate window button (in the upper-right of Chrome Developer Tools and just left of the X that you can click to close Chrome Developer Tools).Now you will see all the links from that particular web page. Var urls = document.getElementsByTagName('a') Inside the Console panel paste the JavaScript below and press Enter:. Click the Console panel near the top of Chrome Developer Tools.Open Chrome Developer Tools by pressing Cmd + Opt + i (Mac) or F12 (Windows).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |