Friday, August 24, 2018

Finding all elements with z-index inside a a page

var all = document.querySelectorAll('*');
for(var i = 0; i < all.length; i++) {if(all[i].style.zIndex > 0) {console.log(all[i].style.zIndex); console.log(all[i]);}}

No comments:

Post a Comment

My Tiny Spreadsheet Extension - A spreadsheet that lives in your browser

Download now   The problem You need a simple fast spreadsheet  Google Sheet is clutters up Excel files are lost Google Sheets are saved on t...