www.webdeveloper.com
Results 1 to 3 of 3

Thread: Alert pop up box

  1. #1
    Join Date
    May 2013
    Posts
    5

    Alert pop up box

    Hi all, just wondered if anyone had a code for an alert popup box, basically I have a jobsite and wanted to have a popup box to appear if a employer has any applications to their job posts since they last logged in. which on click will link to the page where those applications are.

    Can anyone help?

  2. #2
    Join Date
    Sep 2008
    Location
    Dallas
    Posts
    154
    You need JavaScript.

    alert("whatever message goes here");

  3. #3
    Join Date
    May 2013
    Location
    Surendranagar Gujarat India
    Posts
    55
    JavaScript has three kind of popup boxes: Alert box, Confirm box, and Prompt box.
    Alert Box

    An alert box is often used if you want to make sure information comes through to the user.

    When an alert box pops up, the user will have to click "OK" to proceed.
    Syntax
    window.alert("sometext");

    The window.alert method can be written without the window prefix.
    Example
    <!DOCTYPE html>
    <html>
    <head>
    <script>
    function myFunction()
    {
    alert("I am an alert box!");
    }
    </script>
    </head>
    <body>

    <input type="button" onclick="myFunction()" value="Show alert box">

    </body>
    </html>



    Kishor Makwana
    Software Engineer
    Insight Softech
    www.insightsoftech.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles