Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2004
    Location
    Minnesota
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with some code for onClick="Start

    New to Java and looking for some help (ok more then new, havn't even really started learning yet)

    In my form I have an input button to Update or Submit
    and a 2nd button to return to previous record select screen

    The function below opens a new window with out menubar etc, what I want is to open "SelRecord.asp" in current window.

    Thanks for any help in advance.
    J.C.

    Code:
    <INPUT type="submit" value="Update record">
    <input type=button onClick="Start('SelRecord.asp')" value="Return to Select">
    Fuction code:
    Code:
    <SCRIPT LANGUAGE="JavaScript">
      <!-- Begin
        function Start(page) {
          OpenWin = this.open(page, "CtrlWindow", "toolbar=none,menubar=none,location=none,scrollbars=yes,resizable=yes");
        }
      // End -->
    </SCRIPT>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    <INPUT type="submit" value="Update record">
    <input type=button onClick="document,location.href='SelRecord.asp';" value="Return to Select">
    You can also delete the <script></script> block unless you're using that same code somewhere else on the page.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    New Coder
    Join Date
    Jan 2004
    Location
    Minnesota
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Roy
    Thanks once again

    Gosh I feel like I should be paying you or something

    but not sure what pay scale to use here?
    A. Current pay for teachers --- next to nothing
    B. Stuff learned by student --- think I'd go broke
    C. Price per foot --- $1 per foot of instructor



    thanks and have a good week-end Roy
    J.C.


  •  

    Posting Permissions

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