+ 11
Simply put, you can't do it. This is probably how it was done in SoloLearn code playground (to display the title "Code Playground") https://stackoverflow.com/questions/38053779/android-webview-how-to-change-javascript-alert-title-text-in-android-webview It is done as part of implementing the webview that runs the web codes in SL and cannot be changed from the client code (the JS in the playground) and on a sidenote, alert/confirm/prompt blocks the single thread javascript runs on so it basically stops your code until the user closes the box. it also looks bad. there are plenty of modals/popups libraries out there that you can use. or even better, practice on making one yourself ;)
19th Dec 2019, 7:52 PM
Burey
Burey - avatar
+ 3
😎🤘
19th Dec 2019, 8:39 PM
Burey
Burey - avatar
+ 1
use pop-ups in your projects rarely and responsibly, when absolutely necessary, as it irritates users
19th Dec 2019, 4:15 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
برو به درسنامه یدسولو لرن
20th Dec 2019, 4:01 PM
Hossein.Targeryen
Hossein.Targeryen - avatar
19th Dec 2019, 3:04 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
0
Robert it's probably not possible to remove the "The page at ... says:" heading because this is automatically displayed by most browsers. The browser Sololearn used maybe didn't show this message or they just edited the screenshot (which I guess is what happened).
19th Dec 2019, 7:47 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
- 1
When you type @ symbol wait a little. Then you can see window whith our names 😉
19th Dec 2019, 6:39 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
19th Dec 2019, 6:54 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
- 1
You can show us your code? Put it on jsbin.com, codepen.io or jsfiddle.net and get from there link
19th Dec 2019, 6:56 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
- 1
sorry, but in your code POPs up a window with text and at the top, where it is impossible to change anything written "confirm the action" (I have in Russian)
19th Dec 2019, 7:40 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
- 1
I see no other inscription. maybe you have another code and it uses a modified or some other modal window?
19th Dec 2019, 7:42 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
- 1
you cant change title in alert boxes as a security feature in browsers...but you can make custom alerts using divs tags or dialog tags and js to open and close windows...but dialog tags are not implemented in all browsers last time i checked
20th Dec 2019, 3:36 PM
kay cruz
kay cruz - avatar
- 1
alert() is a warning for users....confirm() confirm choice....ok or cancel....prompt gets info to store in variable for later....you can use if else statements to control if ok or cancel is clicked...you if have text or not for prompt you can use if else and loops for those too..just for fun to get used to the programming process
20th Dec 2019, 3:43 PM
kay cruz
kay cruz - avatar