Jump to content

Alerts


The Praetorian
 Share

Recommended Posts

All that can be styled in an alert is none. The only code that will work is the plain text line break, or "newline". Actually:

\r\n or \n
To be able to style such alert, you should think of going making your own alert "popup", as just a new window that is smaller than the opener, or something. :)
Link to comment
Share on other sites

Will the answer is no, but you can use CSS to design your own box and give is a display of none and then when you need to turn the display on and use innerhtml to put a error msg into a <p> with the box.If you need more information or a eample let me know.Happy programming :)

Link to comment
Share on other sites

An example would be great, actually. Thanks. Most of that didn't make sense to me. heh.

You could use window.open() and remove toolbars etc then create a page that looks similar to the alert, but with formatting allowed.http://www.javascript-coder.com/window-pop...ndow-open.phtml
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...