Toggle navigation menu
OpenNTF Snippets
Other Sites
OpenNTF
Collaboration Today
XPages.info
Anonymous
Login
Back
logToBrowser
You have to login first to use 'My Favorites' feature
1 user(s) has marked as favorite:
Eric McCormick
Language
JavaScript (Client)
Tags
Author
F van der Linden
Submitted on
November 15, 2011 at 1:38 PM
Rating
Downloads
5
Notes
Internet Explorer doesn't have the console, to debug javascript code. So I wrote a small function to try to log to console, is not possible create alert
Select XSnippet to copy to Clipboard
Embed XSnippet
Report
function logToBrowser(message){ try{ console.log(message); } catch(err) { alert(message); } }
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the
Apache License Version 2.0
. See
Terms of Use
for full details.
No comments yet
Login first to comment...
Toggle navigation menu
Hosted by OpenNTF
Terms of Use
Privacy Policy
Contact OpenNTF
Follow OpenNTF
Follow Snippets