0

Alert js

Hello I begging js and i see function and alert.... i would do an alert when i click on something but the alert i would put anthing like backgroung, table, margin,etc... i want Know how i must do it.... with a link with a src -> alert(src=¬ę¬†document.css,js or other) or put all attribut, function... directly in the alert or with an other way...? I hope that it‚Äôs clear for you Thank‚Äôs

25th Dec 2018, 10:07 PM
Axelle
4 Respostas
+ 3
Alerts do not support HTML (and they stop javascript from running) so here is an alternative: https://code.sololearn.com/WOCCgGevzhlZ/?ref=app https://code.sololearn.com/WwB6JJeI4oJ7/?ref=app https://code.sololearn.com/WEAc28D19w9U/?ref=app If the first one gives you a syntax error, try it in a browser (it requires javascript to support arrow functions, which is not available on older mobiles). JQuery for mobiles also has a customizable popup dialog implementation: https://demos.jquerymobile.com/1.2.0/docs/pages/popup/ .
27th Dec 2018, 5:13 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
It looks like you are asking: ~ How to send an alert when clicking "something" ... This "something" could be a link (or maybe a button, etcetera) ~ You want the alert to contain more than just text To put this another way...you might be asking: Can I 'alert' and show a pretty-looking HTML popup? ...Yes?
26th Dec 2018, 1:13 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
thank's i look it
27th Dec 2018, 9:03 AM
Axelle
0
yesss it's exactly it !
26th Dec 2018, 6:58 AM
Axelle