4 ms·
Popups already exist on the web. Typically they are implemented by injecting an element as the last child of the body element, and then use absolute positioning
by goto11 4y ago
Popups already exist on the web. Typically they are implemented by injecting an element as the last child of the body element, and then use absolute positioning on it. Last inserted element wins. This proposal just allows the same effect with simpler code and no need for DOM injection.