liemstra Posted May 2, 2017 Share Posted May 2, 2017 Hi, In https://www.w3schools.com/jsref/event_onshow.asp an example is shown of the <onshow Event>. When the yellow rectangle is right-clicked (as instructed), an alert popup is displayed while the main page (now functioning as bkgnd) is covered with a grey colored sheet (image?). Where can I find the code section which is doing this (the grey-covering)? Purpose is to change the color/opacity of it. Thanks! Liemstra. Link to comment Share on other sites More sharing options...
Ingolme Posted May 2, 2017 Share Posted May 2, 2017 That's just how the browser renders the alert box. You have no control over it. Link to comment Share on other sites More sharing options...
liemstra Posted May 2, 2017 Author Share Posted May 2, 2017 Too bad ... . Thnx Ingolme. Link to comment Share on other sites More sharing options...
dsonesuk Posted May 2, 2017 Share Posted May 2, 2017 It seems onshow has limited browser support, so what would be the point? You could use a div container using position: fixed, background-color: black; with opacity: 0.5; to get same effect, then can change it to whatever colour you choose. Link to comment Share on other sites More sharing options...
liemstra Posted May 2, 2017 Author Share Posted May 2, 2017 Right! Happens that I just stumbled into a tut showing what you've pointed out: a div with an inline lightbox styling which gives me full control of it (plus some jQ control codes for the lightbox). Initial question was due to the W3Schools tut (çause I'm an 'early-learner', looking, searching everywhere ... ;-)). Thnx dsonesuk! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now