I want to tap and copy the text in the alert.

Asked 1 years ago, Updated 1 years ago, 35 views

Thank you for your help.

I am creating a mobile app with Monaca.

If an error occurs in the app,
Error indicating "alert(err)"

At this time, double tap or long tap the sentence displayed in the alert. I'd like to make a copy, but I don't know how to implement it at all.

If anyone knows how to implement it, please help me.

javascript monaca

2022-09-30 19:40

1 Answers

If you can use alert(); how about window.prompt?
result=window.prompt('text to be displayed', 'default character to be displayed in input field');
Or prompt(text, value);


2022-09-30 19:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.