Sir I've used one <form> tag and used action="sourceurl.com" In it as a property.
And I've used 2 buttons between the opening and closing tag of <form>, one for logon and another for cancel. So, when i click on the logon button it simply redirects me to that link but when i click on the cancel button it also redirects me to that link. But i want don't want to get redirected when i click on the cancel button