Results 1 to 5 of 5
  1. #1
    mutuah is offline Member
    Join Date
    Jul 2007
    Posts
    9
    Rep Power
    0

    Default Javascript Alert

    Hi all, am trying to develop an javascript alert that displays text fields inside. My idea is that, these text fields should take in data inputs to be passed to the main form.

    How do i go about this?

    Mutua.

  2. #2
    dgaur's Avatar
    dgaur is offline Member
    Join Date
    Mar 2010
    Location
    Noida, india
    Posts
    7
    Rep Power
    0

    Thumbs up Javascript Alert

    Hi,

    you may try this.

    var name = prompt("What is your name", "Type you name here");
    alert("Hi " + name);


    This will open a alert with text box to enter a value and then you can save it and use it in your form.

    Hope it will solve your issue.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    First of all, you should know the difference between Java and JavaScript. Those are completely two difference technologies. There is no any connection at all. So please don't ask JS questions here in our community, this is related with Java.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Not only that, but dgaur is re-animating a thread that has been dead since 2007. Locking.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Javascript into Excel
    By gdj100 in forum Advanced Java
    Replies: 0
    Last Post: 03-12-2008, 11:03 AM
  2. please help with javascript code!!!!
    By sahkab in forum New To Java
    Replies: 1
    Last Post: 11-26-2007, 03:20 PM
  3. Using Alert in MIDlet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-22-2007, 10:22 AM
  4. Alert box showing time left
    By hasansheikh18 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-19-2007, 08:56 AM
  5. Jsp and javascript
    By Ed in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-04-2007, 04:54 AM

Posting Permissions

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