Skip to main content
Participant
May 27, 2024
Question

How to do pop up message

  • May 27, 2024
  • 3 replies
  • 367 views

Hello, i am new to dreamweaver, so i have learend the dreamweaver feature for login, but i have a problem that i cannot display any pop up message if the user login succesfuly or vice versa. can someone help me?

    This topic has been closed for replies.

    3 replies

    Community Expert
    May 28, 2024

    What tutorial did you follow for a login? If you are using the server behaviors functionality you may want to reconsider that code as it is out of date. I would recommend a CMS or looking into a provider for login functionality as this will more closely tie into your site as opposed to building things out in pieces from tutorials and instructions that may not be compatible with one another.

    Participant
    May 27, 2024

    To display a pop-up message in Dreamweaver after a user logs in, you can use JavaScript. Here’s a simple example:

    <script>
    function loginSuccess() {
    alert("Login successful!");
    }

    function loginFailure() {
    alert("Login failed. Please try again.");
    }
    </script>

    Nancy OShea
    Community Expert
    Community Expert
    May 27, 2024

    See JavaScript Popup Boxes. Decide which type of Popup you want.

    • Alert,
    • Confirm,
    • Prompt.

    https://www.w3schools.com/js/js_popup.asp

     

    Hope that helps.

     

    Nancy O'Shea— Product User & Community Expert