Notices

Great community. Great ideas.

Welcome to ASP/Free, a community dedicated to helping beginners and professionals alike in improving their knowledge of Microsoft's development and administration technologies. Sign up today to gain access to the combined insight of tens of thousands of members.

Thread: Java Command to Refresh the Page? (Please)

Results 1 to 3 of 3
Share This Thread →
  1. #1
    PhilCollins99's Avatar
    PhilCollins99 is offline The Constant Student
    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
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    yes there is:
    Code:
    <select name="mycombobox" onchange="this.form.submit();">

  3. #3
    tr333 is offline Contributing User
    Join Date
    Jul 2004
    Location
    Sydney, Australia
    Posts
    44
    Rep Power
    10
    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>

Share This Thread →

Become Part of This Conversation

Join NowFor Free!

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

ASP Free Advertisers and Affiliates