2012-02-10 location.href = 'javascript:(' + function(){ //hogehoge }.toString() + ')()'; https://gist.github.com/1787965 http://d.hatena.ne.jp/./os0x/20080403/1207223147 location.href = 'javascript:(' + function(){ //hogehoge }.toString() + ')()';