Use javascript to confirm the prompt.