OnChange=submit(); command flips parent page...

M

Mel

i popup a new window in my submit command and return false;

but my parent still flips the page ! how can i stop it ?

thanks
 
M

Michael Winter

i popup a new window in my submit command and return false;

but my parent still flips the page ! how can i stop it ?

Your code?

By the way, you should never perform an action like submitting a form or
navigating a page based on changing a value. Only do it from activating a
button or link: something they expect.

Users can make mistakes. Allow them to fix them.

Mike
 
L

Lasse Reichstein Nielsen

Mel said:
i popup a new window in my submit command and return false;

but my parent still flips the page ! how can i stop it ?

Calling the submit function bypasses the onsubmit handler. The handler
is only called if the user submits the form (using as submit button or
pressing return in an appropriate field).

You should almost never submit a page when a value is changed. It is a
usability problem for normal people making a mistake and, if used on
select elements, impossible to use for people navigating with the
keyboard (which some people are forced to do).

/L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top