Saved Bookmarks
| 1. |
Solve : Black out webpage with an alert, then take it to normal?? |
|
Answer» I SEE websites that have a code where you can click a LINK, and the screen turns black with like a transparency of 0.5, then shows an alert. ....... How would I do this?
Code: [SELECT]<a href="#" onclick="document.style.backgroundOpacity='0.5'; alert('This is an alert!');">Click</a> Does that work?OOPS. I FORGOT to add: How would I make it clear the screen once the alert is removed? |
|