RuliTheHat Posted May 30, 2012 Share Posted May 30, 2012 Is there a way to make a simple popup box without any buttons using javascript? I am aware of the alert and confirm boxes etc, but they all contain buttons... I need only to inform users that they will be logged out after a period of time due to inactivity. Link to comment Share on other sites More sharing options...
Don E Posted May 30, 2012 Share Posted May 30, 2012 Sure... On that particular page or where needed, create a div for example and design/style it to your needs/looks for that page and have it display: none via css when the page loads. Then when needed for whatever reason, use javascript and css to display it somewhere on the page; for example the top or center. You can even dim the background like some sites do giving it a nice effect when you have the pop up appear. Don't forget to give the user a way to close the pop up, like an X or something in the corner. When they click on it, it will set the div(the pop up) to display: none; thus disappearing. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.