Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Alert Box

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Alert Box

    What is wrong with the use of the alert box here please

    <head>
    <br><br><br><br><center>
    <font face="arial" size="4" color="FF0000"><b>
    MOUSE TRAINER  -- Click on one of the images <p><p><p><p>
    <script type="text/javascript">
    function onmousedown()
    {
    document.getElementById("b1").src = "b_blue.gif";
    }
     
    function show_alert()
    {
    alert("Well done");
    }
    </script> </head>
     
    <body>
     
    <a show alert_alert() />
    <img border="0" src="smile.gif" 
      id="b1"
    width="26" height="26" onmousedown="onmouseDown()" /n>
     
    </body>
     
    </center></html>


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    619
    My Mood
    Sleepy
    Thanks
    10
    Thanked 94 Times in 87 Posts

    Default Re: Alert Box

    It's javascript, that's wrong with it. This is a Java forum.

  3. #3
    Junior Member
    Join Date
    Jun 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Alert Box

    Thanks I am in the wrong forum

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    6,098
    My Mood
    Mellow
    Thanks
    244
    Thanked 754 Times in 740 Posts

    Default Re: Alert Box

    Thread moved.

  5. #5
    Junior Member
    Join Date
    Jun 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Alert Box

    Please explain why I am new to this forum.

  6. #6
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    6,098
    My Mood
    Mellow
    Thanks
    244
    Thanked 754 Times in 740 Posts

    Default Re: Alert Box

    Are you asking why the thread was moved? When communicating in a forum, largely limited to written words - sometimes in a non-native language - be as clear as possible, almost as though you're talking to a 10-year old. Remember, all we know is what we read, and the context isn't always clear.

    If you're asking why the thread was moved, it's because the forum is broken into areas, sub-forums, each attempting to address either specific topics or general areas of Java questions and discussions, all under the Java SE topic. Your thread was originally posted in the Java SE "What's Wrong With My Code" sub-forum which is where all new topics are dumped by default when the "Ask a Question" button is pressed in the upper-left corner of the forum screen. Since your thread is not about Java SE, it's not appropriate in that sub-forum, so I moved it to "Other Programming Languages" in the Cafe, the best place for your thread in this Java forum.

    There are a few JavaScript-capable folks here, so you may get a response, but be patient. It may take some time.

    BTW - Thanks for posting your code in code tags. That's a hurdle many don't clear successfully for several posts. I notice that the code is not indented at all - almost all lines start at column zero. Either code formatting was somehow lost in the copy/paste, or you don't indent your code. If the latter, please learn how to properly indent your code and in the future post indented code.

    Be well, keep coding.

Similar Threads

  1. Replies: 1
    Last Post: May 4th, 2014, 04:04 AM
  2. Replies: 1
    Last Post: May 4th, 2014, 04:04 AM
  3. Making an input dialog box appear after closing a combo box
    By Shenaniganizer in forum What's Wrong With My Code?
    Replies: 14
    Last Post: November 11th, 2012, 06:22 PM
  4. alert box in front end to display errors in backend
    By nischalinn in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: July 25th, 2012, 12:16 AM
  5. Warning! Greenhorn alert
    By Montrell79 in forum Member Introductions
    Replies: 2
    Last Post: March 6th, 2012, 03:56 AM