Not open in new window javascript

hi,

I’ve a javascript under a submit button at the end I’ve this:

form.submit()

window.open(“bedankt?openform”)

This will open my thanks form in a new window but this it not what I want, I want it to be opened in the same window.

How can I do this?

Rgds,

Rudy

Subject: Not open in new window javascript

When you use form.submit() you should use the $$Return field on the form to redirect the user back to your “thanks” form.

If you have a Web Query Save agent assigned to the form you are submitting you can also redirect the user to your thanks form using the “Print [ …url…]” syntax.

You shouldn’t be redirecting the user in the way you are trying as you have no idea whether the form.submit() is actually successful or not

Brad

Subject: Try: window.location=“bedankt?openform”