Archive for JavaScript

using underscore string…


Leave a Comment

JavaScript – Find out where alert from

You can overwrite alert, and create an Error for the stack trace:

var old = alert;

alert = function() {
  console.log(new Error().stack);
  old.apply(window, arguments);

Leave a Comment

JS Popup window remove vertical bar

add css:

body, html {overflow:hidden}

Leave a Comment

jQuery plugin tutorial

Leave a Comment

Free online mini dictionary

mini dictionary is a bookmarklet with some simple tools you can use on any website.

To Install

For IE Browser (version > 6.0)

  1. Drag this to your bookmarks bar (favorites bar or links bar): mini dictionary
  2. Select the following code then press Ctrl+C
  3. Right-click on the bookmark made in step 1 and select “Properties”. In the “URL” field of the “Web Document” tab, press “Ctrl-V” to paste the copied link. Press “OK” to finish.

For Other Browsers

  1. Drag this to your bookmarks bar: mini dictionary

To Use

  1. Go to a website.
  2. Click the “mini dictionary” bookmark.
  3. Double-click on any word on the page, and a mini dictionary will pop up.
  4. Click anywhere outside of the pop-up to close the mini dictionary.

Leave a Comment

View Ajax Souce Code


  1. Create a bookmark in the browser
  2. Copy the following code in the url
    javascript:'<xmp>’ + window.document.body.outerHTML+ ‘</xmp>’
  3. Every time you want to see the page source code including Ajax, click it.


Select the content and “View selection source”

Leave a Comment

How to call a javascript function in the iframe?


Leave a Comment

Older Posts »