JSFrame.js examples Make the window live inside a specific element

By specifying parentElement, the window becomes a child of that element.
You can also use this when you want to specify a window's movement range.
Parent Element
View source on GitHub