dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Need help with an Alert box...

  1. #1
    Join Date
    Nov 2004
    Location
    Wasington State
    Posts
    8

    Need help with an Alert box in JavaScript

    I am attempting to make an alert popup box with user entered text and a static text. "Welcome to the site" would show on the popup box each time with the user text that they input, such as "Corngopher". I have the user part and the alert done but cant get the static text to appear. Heres what I have...

    <form name="frmLogin" onsubmit="alert(document.frmLogin.txtUsername.value)">
    Username <input type="text" name="txtUsername" size="12" /><br />
    <input type="submit" value="Send" />

    It has a little place to type your name and a Send button. Whne I click send, I get whatever the person typed in the box. I just need to get "Welcome to the site" and a single space to show before the user text shows on the pop up box.

    Hope it made sense :) and thanks for any help.
    Last edited by Corngopher; 11-19-2004 at 03:22 PM.
    Share on Google+

  2. #2
    Join Date
    Nov 2004
    Location
    Wasington State
    Posts
    8
    Im very sorry. I posted here by mistake. It has been posted in the JavaScript forum now, but I cannot delete this post so...
    Share on Google+

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