Changing url - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Changing url

GrindGrind Posts: 3Member
Hi
I havent used javascript much for some time and need to change the url of a page (on a frame) when a form button is pressed. The actual url isnt so important and can be hardcoded till I get home.
Thanks


Comments

  • bgibbybgibby Posts: 251Member
    : Hi
    : I havent used javascript much for some time and need to change the url of a page (on a frame) when a form button is pressed. The actual url isnt so important and can be hardcoded till I get home.
    : Thanks
    :
    :
    :

    Hi there,

    If the form button is then onClick="top.frame_name.document.location.href = 'url.html';".

    If the form button is then do the same as the onClick code but place it in the onSubmit event handler in the FORM element.



    HTH
    Bradley q:)
Sign In or Register to comment.