0

Below is the coding in my HTML page:

    <input onclick="return  confirm('Delete Record?')"
        type="submit" value="Delete" name="Delete">

Delete function is working but without pop out "Delete Record? " in Google Chrome ver38.

Delete function is working and with pop out "Delete Record?" in Internet Explorer.

Any solution for this problem?

Pang
  • 9,564
  • 146
  • 81
  • 122
ng sam
  • 1
  • 1
  • 1
  • do you have any console error in chrome? try looking at it :) – mhars Oct 27 '14 at 04:37
  • 1
    By pop out you mean alert/confirm box, I guess! Chrome has changed it's alert/confirm box appearance compared to other browsers. Probably this is what you are pointing at. If you can add screen shots of both Chrome and IE it would be helpful. – Devraj Gadhavi Oct 27 '14 at 04:42
  • Something to do with pop-up settings? See https://support.google.com/chrome/answer/95472?hl=en amd http://stackoverflow.com/questions/19529036/google-chrome-not-displaying-alert-popups-for-one-site – acarlon Oct 27 '14 at 05:45
  • Thank you guys fro helping me but it still not works.It is weird because i have couple html page with this coding. Some of them can function(alert box popout) but some can't. I'm wondering the reason and solve this bug. – ng sam Oct 27 '14 at 07:53

1 Answers1

0

Try without 'return', like this:

<input onclick="confirm('Delete Record?')" type="submit" value="Delete" name="Delete">

The return keyword doesn't always behave uniformly across browsers.

Amund Midtskog
  • 209
  • 1
  • 8