Guest User

Untitled

a guest
Apr 25th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. The following Javascript finds the highest z-index in the page and changes the
  2. background color to orange.
  3.  
  4. What I'm trying to do is find the DOM element with the highest z-index. I have
  5. the following code, but I can't figure out how to do it without having the variable "high".
  6.  
  7. Can you figure out a better way?
  8.  
  9. Also, it doesn't seem to work in Safari.
Add Comment
Please, Sign In to add comment