#1
  1. The Constant Student
    ASP Adventurer (500 - 999 posts)

    Join Date
    Aug 2004
    Location
    England
    Posts
    914
    Rep Power
    33

    Question Java Command to Refresh the Page? (Please)


    Is there a command I can put into my line of HTML that will refresh or reload my page when I select a particular option?

    Something like this and then a command or Function to replace the questions marks?

    <Option Value="Refresh" OnSelect="??????";>Refresh</Option>

    Cheers.
  2. #2
  3. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2921
    yes there is:
    Code:
    <select name="mycombobox" onchange="this.form.submit();">
  4. #3
  5. No Profile Picture
    Contributing User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jul 2004
    Location
    Sydney, Australia
    Posts
    44
    Rep Power
    11
    you could also do something like this:

    Code:
    <html>
    <head>
    <script type="text/javascript">
    function refresh()
    {
    window.location.reload()
    }
    </script>
    </head>
    
    <body>
    <form>
    <input type="button" value="Refresh page" onclick="refresh()">
    </form>
    </body>
    </html>

Similar Threads

  1. Refresh Page
    By grendon in forum ASP Development
    Replies: 2
    Last Post: July 12th, 2004, 02:36 PM
  2. Refresh Page After Popup
    By JayD in forum ASP Development
    Replies: 8
    Last Post: May 24th, 2004, 09:28 PM
  3. Page Position After Refresh
    By zxr750j in forum ASP Development
    Replies: 1
    Last Post: February 18th, 2004, 12:50 PM
  4. How to refresh the ASP page
    By dupati1 in forum ASP Development
    Replies: 4
    Last Post: January 5th, 2004, 10:34 AM
  5. Web page refreshes but data doesn't refresh!!!
    By Steve Schofield in forum .NET Development
    Replies: 1
    Last Post: February 15th, 2002, 11:21 AM

IMN logo majestic logo threadwatch logo seochat tools logo