Overlay Page

46 views
Skip to first unread message

Mostafa Fotouhi

unread,
Nov 23, 2021, 2:06:25 AM11/23/21
to Chromium Extensions
Hi friends
I wanna create an overlay page for extension. I mean I have a button on the popup.html and I want to show the overlay page when the user clicks it. I have some things like buttons on the overlay page. how I implement it?

Mohamad Bazzi

unread,
Nov 29, 2021, 8:12:21 PM11/29/21
to Chromium Extensions, mfot...@gmail.com
Do you mean a window/modal that overlays everything else in the page ?

you can do that by using the following css properties on the outermost div and then appending it to the document body like so: document.body.appendChild(myModalElement)

position: fixed !important;
z-index: 2147483647 !important;
visibility: visible !important;
display: inline !important;
Reply all
Reply to author
Forward
0 new messages