How to edit a JavaScript alert box title?
No, you can’t. It’s a security/anti-phishing feature.
No, you can’t. It’s a security/anti-phishing feature.
You simply cannot, the styling is handled by the browser and is different in every browser. You could use a different solution such as a jQuery UI Dialog https://jqueryui.com/dialog/
You are missing one + sign in the alert parameter: alert(“The string ” + fullName + ” is ” + fullNameLength + ” characters long.”); // ^ here You should write your code in some proper editor or IDE (webstorm, vs code, …). That way the editor will highlight those simple syntax errors for you … Read more