javascript --ALERT --
Posted: Thu Jul 08, 2004 10:27 am
ok some quick fire questions as im currently using alert boxes for something in a CMS..
ok say you have this code
now we all know what the output looks like, but i want to know if its possible to change some things.
1) The title for the alert
?? can this be changed (in internet explorer it says Internet Explorer, i want this to change to the title of an error message)
2) Add new lines in the box
now this one has me stumped, i hate javascript so dont really use it, and have no idea of new line conventions or anything in javascript
for example.
Id like the output to be something like--
There has been an error on the page.
Error: Site out of sync
ive tried lots of ways of getting new lines, and none work
any help on the above mentioned questions would be great
Thanks
Mal
ok say you have this code
Code: Select all
alert("Text Here. More text, More text, More text, More text, More text, ")1) The title for the alert
?? can this be changed (in internet explorer it says Internet Explorer, i want this to change to the title of an error message)
2) Add new lines in the box
now this one has me stumped, i hate javascript so dont really use it, and have no idea of new line conventions or anything in javascript
for example.
Id like the output to be something like--
There has been an error on the page.
Error: Site out of sync
ive tried lots of ways of getting new lines, and none work
any help on the above mentioned questions would be great
Thanks
Mal