: 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 <INPUT TYPE="BUTTON"> then onClick="top.frame_name.document.location.href = 'url.html';".
If the form button is <INPUT TYPE="SUBMIT"> then do the same as the onClick code but place it in the onSubmit event handler in the FORM element.
<FORM onSubmit="top.frame_name.document.location.href = 'url.html';">
HTH
Bradley q:)