The Praetorian Posted June 27, 2006 Share Posted June 27, 2006 Is it possible to style altert boxes at all? Or are they dependent upon the person's browser? And will links/images work in an alert? Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 27, 2006 Share Posted June 27, 2006 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 More sharing options...
dbadlu Posted June 29, 2006 Share Posted June 29, 2006 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 More sharing options...
The Praetorian Posted June 30, 2006 Author Share Posted June 30, 2006 An example would be great, actually. Thanks. Most of that didn't make sense to me. heh. Link to comment Share on other sites More sharing options...
scott100 Posted June 30, 2006 Share Posted June 30, 2006 An example would be great, actually. Thanks. Most of that didn't make sense to me. heh.<{POST_SNAPBACK}> 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 More sharing options...
magicadmin Posted June 30, 2006 Share Posted June 30, 2006 But if some one has popup blocker on like most of us do it will now work Link to comment Share on other sites More sharing options...
Flail-Meister Posted July 1, 2006 Share Posted July 1, 2006 But if some one has popup blocker on like most of us do it will now work <{POST_SNAPBACK}> Well, you can also use an image-map (Image.) for auto-pop, so, technically, it isn't a new page, but a graphic stuck in one location which can be cancelled out, and more. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now