Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Feb 2013
    Location
    sydney
    Posts
    223

    How to i create popup?

    Hello everybody
    Look like the title, i have a question: How to create popup. please share your suggestion.
    Thanks

  2. #2
    Senior Member
    Join Date
    Apr 2013
    Posts
    126
    YOu can look for Javascript code to create a pop-up, I do not remember the exact code, but you can Google "Java-Script code for pop-up" to find exact code and use.
    web designing company in Hyderabad | best urologist in Hyderabad urologist Hyderabad, best urologist Hyderabad, urology | visit for website design in Hyderabad, Web design | website design company in Hyderabad

  3. #3
    Junior Member
    Join Date
    May 2013
    Posts
    24
    if (JOptionPane.showConfirmDialog(null, "Are you sure about your request?", "Request",
    JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE)
    == JOptionPane.YES_OPTION)
    {
    //Do the request
    }
    else
    {
    //Go back to normal
    }

    you can try this

  4. #4
    Registered User crescendo's Avatar
    Join Date
    Sep 2012
    Location
    India
    Posts
    200
    Use event based functions of Javascript and JQuery to display pop ups

  5. #5
    Junior Member
    Join Date
    May 2013
    Location
    HostBlizzard.com
    Posts
    13
    Checkout DynamicDrive, they have lots of useful scripts you can use.

  6. #6
    Registered User
    Join Date
    Mar 2012
    Location
    United States
    Posts
    14
    This article might help you on creating a popup: http://youngpup.net/archived/popups.html

  7. #7
    Senior Member
    Join Date
    Apr 2013
    Location
    Sydney
    Posts
    108
    To creat popup you need to implement with Java script. you can be find that code easily on google or go on w3school.

  8. #8
    Registered User
    Join Date
    Mar 2019
    Location
    Ahmedabad
    Posts
    180
    <!DOCTYPE html>
    <html>
    <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
    body {font-family: Arial, Helvetica, sans-serif;}
    * {box-sizing: border-box;}

    /* Button used to open the contact form - fixed at the bottom of the page */
    .open-button {
    background-color: #555;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: center;
    bottom: 23px;
    right: 28px;
    width: 280px;
    }

    /* The popup form - hidden by default */
    .form-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
    }

    /* Add styles to the form container */
    .form-container {
    max-width: 300px;
    padding: 10px;
    background-color: white;
    }

    /* Full-width input fields */
    .form-container input[type=text], .form-container input[type=password] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
    }

    /* When the inputs get focus, do something */
    .form-container input[type=text]:focus, .form-container input[type=password]:focus {
    background-color: #ddd;
    outline: none;
    }

    /* Set a style for the submit/login button */
    .form-container .btn {
    background-color: #4CAF50;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;
    }

    /* Add a red background color to the cancel button */
    .form-container .cancel {
    background-color: red;
    }

    /* Add some hover effects to buttons */
    .form-container .btn:hover, .open-button:hover {
    opacity: 1;
    }
    </style>
    </head>
    <body>

    <h2>Popup Form</h2>
    <p>Click on the button at the bottom of this page to open the login form.</p>

    <button class="open-button" onclick="openForm()">Open Form</button>

    <div class="form-popup" id="myForm">
    <form action="/action_page.php" class="form-container">
    <h1>Login</h1>

    <label for="email"><b>Email</b></label>
    <input type="text" placeholder="Enter Email" name="email" required>

    <label for="psw"><b>Password</b></label>
    <input type="password" placeholder="Enter Password" name="psw" required>

    <button type="submit" class="btn">Login</button>
    <button type="button" class="btn cancel" onclick="closeForm()">Close</button>
    </form>
    </div>

    <script>
    function openForm() {
    document.getElementById("myForm").style.display = "block";
    }

    function closeForm() {
    document.getElementById("myForm").style.display = "none";
    }
    </script>

    </body>
    </html>

  9. #9
    Registered User digitalludhiana's Avatar
    Join Date
    Mar 2020
    Location
    Ludhiana
    Posts
    11
    there many pop-ups, that you can create using js, but which one you want? there are many variant some works on-click, some works on-load different.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.