0

alert () limits

Do the alert function (JS) have a limit? And if it does, what is it? I mean in terms of characters, what else you can put in it, the limit of those things, or if it's simply limitless, i mean, could you the whole page there? With links, images, all HTML elements, can you add CSS's styles to it? Sorry if i being lazy but Solo Learn's playground lags a bit on my phone while working with big codes (read: a dozen lines :v) and screw up with my RAM so I have to restart my phone if i try to work there (i use editors downloaded from Play Store).

9th Feb 2019, 8:34 PM
Grasshopper Hell Monkey
Grasshopper Hell Monkey - avatar
3 Antworten
+ 1
The alert box is a system object, and not subject to CSS. To do this style of thing you would need to create an HTML element and mimic the alert()functionality. Or you can use function like SweetAlert https://github.com/t4t5/sweetalert
9th Feb 2019, 8:59 PM
Elghozi Nasreddine
Elghozi Nasreddine - avatar
+ 1
Thanks man!
9th Feb 2019, 9:34 PM
Grasshopper Hell Monkey
Grasshopper Hell Monkey - avatar
+ 1
Grasshopper Hell Monkey you are welcome
9th Feb 2019, 11:00 PM
Elghozi Nasreddine
Elghozi Nasreddine - avatar