Last updated on February 9th, 2022 at 10:45 amThis script will call a function and then prompt user that they are leaving the web page. Here is the sample code. You might also be interested in this tutorial on Detecting browser close event using javascript. In the above code you can see that before I […]
Page 44 of 56
How to create calendar using Javascript
Last updated on January 4th, 2023 at 06:12 pmIn this tutorial we are going to show you the code that can be used to create a calendar inside a web page. Simply copy paste the code below to your header / footer / main or side widgets to display calendar. Feel free to modify the […]
Javascript Detect browser close event alert message
Last updated on October 30th, 2024 at 02:24 pmThis script will help you to detect browser or tab close event and alert some messages. Even this script will be useful to call some Ajax functions which terminate connection to Database or something related. Tested on latest version of Chrome and Internet Explorer 11.0 and Microsoft […]
Beautiful Christmas countdown timer with CSS download
Last updated on November 11th, 2024 at 10:53 amThis code sets up a countdown to December 25 of the current year and dynamically displays the remaining time in a formatted layout (days, hours, minutes, seconds) within an element with the class time. It also displays the current year in an element with the ID year. […]