1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with javascript

Discussion in 'BlackHat Lounge' started by WPRipper, May 3, 2011.

  1. WPRipper

    WPRipper Supreme Member

    Joined:
    Mar 24, 2010
    Messages:
    1,379
    Likes Received:
    1,493
    Location:
    Proudly romanian
    Hey guys i really need ur help.

    I have a simple form with validation and i want after submit to redirect to a new page. All good so far, but when i add the onclick command the form redirect to the new page wothout validation. Here is the code:

    Without redirection

    <input type='image' name='Submit' id='hash_Submit_img' />

    ( here is all good )

    With redirection

    <input type='image' name='Submit' id='hash_Submit_img' onclick="location.href='something.html'" />

    ( now it makes the redir. but without validation)

    I really need help with this one. Thx