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 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Alcoy (Spain)
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can I reload the page with a Javascript

    I'm working with Javascript and PHP i woluld like to know if a can reload the page when i change the vlaue of a Combox.

    This would be the Combox and i want something to put in the onChange event.

    <select name="select" onChange="">
    <option value="admin" selected>Administrador</option>
    <option value="profe">Profesor</option>
    <option value="alumno">Alumno</option>
    </select>

    Thank You

  • #2
    New Coder
    Join Date
    Jul 2002
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    <select name="select" onChange="location.reload()"> 
    <option value="admin" selected>Administrador</option> 
    <option value="profe">Profesor</option> 
    <option value="alumno">Alumno</option> 
    </select>


  •  

    Posting Permissions

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