Posts

Showing posts from 2024

how to detect browser back and forward button clicks using Java Script

This code demonstrates how to detect browser back and forward button clicks using the History API and custom events. When the user interacts with the back or forward button, the corresponding custom event is fired, allowing you to handle specific actions in your application <!DOCTYPE html> <html lang="en"> <head>   <meta charset="UTF-8">     <meta http-equiv="X-UA-Compatible" content="IE=edge">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Browser Back & Forward Identification</title> </head> <body>     <button id="btn"> <a href="#title">Click the link to change the URL</a></button>     <h2 id="title">How to detect browser back and forward button clicks</h2>     <p class="result"></p>     <script> if(window.history && histor

DACPAC Pros & Cons

The DACPAC (Data-tier Application Component Package) is a Microsoft SQL Server technology used for packaging and deploying SQL Server database schema and objects. It is specifically designed for SQL Server environments and is not applicable to other database platforms. Here's a list of its pros and cons:   Pros:     Version Control : Using GITHUB we can be able to control version management for database schema and objects, which helps in tracking changes over time and collaborating with team members effectively. Version control allows multiple team members to work on the same codebase simultaneously. Single source of truth: It ensures all the team members is working with the latest version of scripts and database objects. The version control enables developers to revert to a previous version if needed. The developers creating the same procedure for testing purposes in different names. While manually merging the procedure will affect the functionality which is already working