IE 7 New Bug: can not block a submit

Discussion in 'Internet Explorer' started by watabeboy, Dec 16, 2006.

  1. watabeboy

    watabeboy Guest

    I have a page with a submit like this :
    <input id="Submit1" type="submit" value="submit" onclick="return false" />
    when I click it ,the page is still postback,Why it can not block it?
    This only appears in WinXP with IE7,Server2k3 work nomal.

    ----------------
    This post is a suggestion for Microsoft, and Microsoft responds to the
    suggestions with the most votes. To vote for this suggestion, click the "I
    Agree" button in the message pane. If you do not see the button, follow this
    link to open the suggestion in the Microsoft Web-based Newsreader and then
    click "I Agree" in the message pane.

    http://www.microsoft.com/communitie...&dg=microsoft.public.internetexplorer.general
     
    watabeboy, Dec 16, 2006
    #1
    1. Advertisements

  2. watabeboy

    Rob ^_^ Guest

    Hi watabeboy,

    <input onsubmit="return false;"....onclick="Dosomethingelse();"
    or replace the type=submit with a normal button
    <button onclick="ValidateAndSubmit();">Submit</button>

    Regards.
     
    Rob ^_^, Dec 16, 2006
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.