2011-01-18 jQueryで現在のページのURLを取得する JavaScript $(location).attr('href'); $(location).attr('href', 'http://www.google.co.jp'); // googleに移動