Forum Moderators: open

Message Too Old, No Replies

Length limit of alert content

         

flashfan

6:46 pm on Dec 21, 2004 (gmt 0)

10+ Year Member



Want to debug DHTML produced by a javascript, I use alert(htmlContent). But the alert window only shows a part of the content. What's the limitation of length of alert content? Is it browser dependent? Any work out?

orion_rus

6:29 pm on Dec 22, 2004 (gmt 0)

10+ Year Member



Try Use Mozilla (windows version) it have JScript debugger good luck to you

Bernard Marx

10:15 pm on Dec 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could have an debug function that either adds a textarea with the output, or writes to the current document (IE-only):

document.open('text/plain')
document.write(output)

flashfan

1:26 am on Dec 24, 2004 (gmt 0)

10+ Year Member



Thanks for the good hints. I made a div; and inserted the message as innerText. It worked.