formatting array output

wxdqz

New Member
Hi there --

I'm working with a JS array in an include that I didn't build... and will confess to being not-so-good with JavaScript. I need my error messages to be formatting prettily: using HTML code to add paragraphs, links, tables... so on and so forth.

I could, instead, redirect to a new page -- but I need to be able to provide more than a text-only string. However that function occurs is fine with me.

I can't seem to get the syntax right, and I know this isn't right: can anyone help?

For example...

var errormessage = new Array(
'<p>This is error one.</p>',
'<p>This is error two <a href=http://www.webdeveloper.com/forum/archive/index.php/"link.asp">with a link</a>.</p>',

I'll be so grateful for advice!
 
Back
Top