Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Bug) Link with Onclick Return Confirm #7

Open
lucianocn opened this issue Mar 6, 2014 · 2 comments
Open

(Bug) Link with Onclick Return Confirm #7

lucianocn opened this issue Mar 6, 2014 · 2 comments

Comments

@lucianocn
Copy link

I have a link with onclick to confirm the action, with OK and CANCEL option. On any desktop browser (Chrome, Safari...) it works properly, but on iOS WebApp (using jQuery.stayInWebApp) the CANCEL button do the same function as OK.

Example Link:

<a onclick="return confirm('Really want to proceed?')" href="/reservation/cancel/1">Cancel</a>

Any idea to solve it?

@techdude
Copy link

techdude commented Mar 7, 2014

What is the specific page with error?

@mrmoses
Copy link
Owner

mrmoses commented Aug 22, 2014

You probably need to stop event propagation. If you used a jQuery event handler, you could call event.stopPropagation(). Otherwise, check out how to stop event propagation with inline onclick attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants