Click to See Complete Forum and Search --> : target window


omar
07-26-2003, 02:36 AM
Hi guys, I'm new here so bear with me. I have a form that I am submitting just in an email and I can get the data sent to an email just fine. What I am wanting to do is load my index page after the submit button is pressed. Can anyone point me in the right direction? I figure I need to use onclick and a function but I don't know how to open a new page in the existing window. I know how to open a new window though.

Thanks!
Omar

SlankenOgen
07-26-2003, 05:30 AM
<form name = "blah" onSubmit = "reloadPage()">

function reloadPage(){

document.location.reload();

}

Khalid Ali
07-26-2003, 09:41 AM
Logically when you press the submit button and you have a valid "URL" in the action attribute,there is nothing that you can be able to execute on the client.because the action command actually sets the whole page out of scope...
Work around.
you can do to make it work with NS browsers is by adding a delay in the execution for action command,and IE already have a built in delay so it will seem like work on that,however,it proably will not work in Opera browser at all since mailto: does not constitute a valid "URI"
Recomended solution will be some server side script to be used for emailing and redirection...