submit to a page that only has javascript

Discussion in 'HTML' started by Matt, Oct 12, 2004.

  1. Matt

    Matt Guest

    When the user submit the form in myform.jsp, it will submit to myaction.jsp. I
    want it only pop up test message box without having the browser with myaction.jsp,
    which is a blank page. Any ideas??

    myform.jsp
    ==========
    <FORM NAME="InputForm" ACTION="myaction.jsp" METHOD="POST">
    //html controls
    </FORM>

    myaction.jsp
    ==========
    <script type="text/javascript">
    alert('test');
    </script>
    Matt, Oct 12, 2004
    #1
    1. Advertising

  2. Matt

    RobM Guest

    "Matt" <> wrote in message
    news:...
    > When the user submit the form in myform.jsp, it will submit to

    myaction.jsp. I
    > want it only pop up test message box without having the browser with

    myaction.jsp,
    > which is a blank page. Any ideas??
    >
    > myform.jsp
    > ==========
    > <FORM NAME="InputForm" ACTION="myaction.jsp" METHOD="POST">
    > //html controls
    > </FORM>
    >
    > myaction.jsp
    > ==========
    > <script type="text/javascript">
    > alert('test');
    > </script>


    Matt, why bother with the javascript; if you want to test submitting one
    page to another, just change myaction.jsp to say "Hello I'm in myaction.jsp"
    in html markup and you'll see it on the browser screen.
    RobM, Oct 13, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Oakfleet
    Replies:
    1
    Views:
    836
    Chris Riesbeck
    Sep 10, 2003
  2. Matt
    Replies:
    1
    Views:
    61
    Thomas Hoheneder
    Oct 12, 2004
  3. Joop
    Replies:
    5
    Views:
    569
  4. ljlolel
    Replies:
    2
    Views:
    492
  5. jatrojoomla
    Replies:
    1
    Views:
    164
Loading...

Share This Page