Quantcast
Channel: Stack Snippets - Using alert() vs document.write() vs console.log() - Meta Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by canon for Stack Snippets - Using alert() vs document.write() vs...

I posted an answer on meta.SE which is related. Here's the relevant bit:Why should we bother avoiding document.write() and alert()?Both assume a browser environment even if we're demonstrating a purely...

View Article



Answer by Travis J for Stack Snippets - Using alert() vs document.write() vs...

It just depends on the question. Sometimes the issue is page structure, in which case showing the properly formed structure is relevant and doesn't need a log or alert.Sometimes the issue is related to...

View Article

Stack Snippets - Using alert() vs document.write() vs console.log()

Is it bad practice to use either alert(), document.write or console.log() in Stack Snippets? I personally find alert() quite annoying, and console.log() takes time to see the output (you need to open...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images