Can window.open be used in electron to display only a certain segment of the target url?

I want to display a web page in the app of electron, but I only want to show one of the canvas. I don"t need the whole html page. If possible, I also want to insert my own div in it to implement a button that closes windows. What should I do?

          window.open(url, "newwindow", "height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
Apr.09,2022

Why create a window? Just write your own bounce box.

Menu