Results 1 to 9 of 9
  1. #1
    presh4u Guest

    Default Need JAVASCRIPT code for button

    Hello,
    I'm new to JAVA programming. I want a javascript code for button. The button must be like this


    When we click on a Button(with some name) it must open a text box window like this

    Text line 1 to left (with color)

    Text line 2 in middle within BOX ( with some color)

    Text line 3 (with color)

    Text line 4 (with color)

    Text line 5 (with color)

    Bottom right close button
    -------------------------------------

    Any number of buttons with corresponding text boxes must be supported within the same code

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

    Default

    JavaScript is not a Java technology. There is a huge difference. You should ask JS question on a JavaScript forum.

  3. #3
    presh4u Guest

    Default

    is this forum only for JAVA?

  4. #4
    Supamagier is offline Senior Member
    Join Date
    Aug 2008
    Posts
    384
    Rep Power
    7

    Default

    Yes... how could you miss that.

    Java Forums General Java New To Java
    I die a little on the inside...
    Every time I get shot.

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

    Default

    Hm, let's see, the forum is called "New to Java"; I wonder what that means?

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

    Default

    Basically our Admin wants to have a separate forum for newbies. His suggestion was New to Java ;)

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

    Default

    Quote Originally Posted by presh4u View Post
    is this forum only for JAVA?
    Did you see that large image on top of each page, with our community slogan. I think you can read what there is. :)

  8. #8
    Raghuvasa is offline Member
    Join Date
    Oct 2008
    Posts
    5
    Rep Power
    0

    Default

    Hi Presh4U

    i think this is helpful to u.

    <HTML>
    <HEAD>
    <script language="javaScript">
    function doSomething(){
    mywindow=window.open();

    mywindow.document.write("txt 1");
    mywindow.document.write("Hello this is something");

    }
    </script>
    </HEAD>
    <BODY>
    <input type="button" value="click me" onclick="doSomething();"/>
    </BODY>
    </HTML>

    it will new window and write the texts as you want and add the colors to it and align the text.

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

Similar Threads

  1. JAVASCRIPT code for button
    By presh4u in forum Java Applets
    Replies: 2
    Last Post: 10-31-2008, 03:03 PM
  2. javascript
    By fiero in forum New To Java
    Replies: 1
    Last Post: 09-22-2008, 02:45 PM
  3. please help with javascript code!!!!
    By sahkab in forum New To Java
    Replies: 1
    Last Post: 11-26-2007, 04:20 PM
  4. Jsp and javascript
    By Ed in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-04-2007, 05:54 AM
  5. Javascript and enter button
    By Eric in forum Advanced Java
    Replies: 1
    Last Post: 06-11-2007, 10:39 PM

Posting Permissions

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