JavaScript picture-in-picture Creating Web Widgets Using the Document Picture-in-Picture API The general idea is that we create a Document Picture-in-Picture window (DPIP window), and then we put HTML, CSS, and JavaScript into it. By Daniel Schwarz on Aug 27, 2026