Re:Comcast injects JavaScript into webpages to show copyrigh...
by k_vi on Thursday November 19, 2015 @05:29AM
(#10593948)
This might not be relevant to the topic(I don't use Comcast), but Im curious how web elements are forced to be overlay consistently across all websites, doesn't the existing css properties on the page affect the behaviour of the injected scripts?
[ Parent
| on HN ]
Re:Comcast injects JavaScript into webpages to show copyrigh...
by Jimmed on Thursday November 19, 2015 @08:17AM
(#10594538)
It's done via the 'z-index' CSS property [0]. Essentially, the higher the z-index, the higher the priority of the element; a higher z-index will appear in front of a lower z-index.