Javascript Event Log ~ Console
April 15, 2009 at 5:18 pm | In Js/Ajax | 1 CommentTags: ajax, javascript, javascript console, javascript tracker, js console, js event log, js event tracker, onclick event tracker
- /*
- Below is the function where to call console()
- */
- window.document.onclick = function(){ console(window.event.target.onclick) };
- function console(msg)
- {
- mywin = window.open(”, ’console’, ’width=500,height=150,left=800,top=800,scrollbars=yes,location=no’);
- if (mywin && msg!=null)
- mywin.focus();
- mywin.document.title=’Javascript Console…’;
- //mywin.document.writeln(‘<h4>Javascript Log here..</h4>’);
- if(msg!=null)
- mywin.document.writeln(‘<div style=”font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; border-bottom: 1px dotted #FFB64A; padding:4px;”>’+msg+’</div>’);
- //mywin.document.writeln(“<br /><a href=\”javascript:void(0)\” onclick=\”this.document.write=”;\” >Clear</a>”);
- //sleep(10); mywin.blur();
- }
1 Comment »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.
Amazing this is very good and useful function…
sandeep verma
(http://sandeepverma.wordpress.com)
Comment by sandeepverma — April 15, 2009 #