History.back仅在重定向到谷歌翻译时

时间:2013-09-16 08:05:34

标签: javascript browser-history google-translate

当您按下翻译按钮并重定向到谷歌翻译时,是否可以使history.back(-2)工作?

这是我的代码,我不知道从哪里开始...

<div class="translate">
  <a href="javascript:history.go(-2)">
    <img src="wp-content/themes/crescendo/images/United-Kingdom.png" height="30" width="30">
  </a>

  <a href="http://translate.googleusercontent.com/translate_c?
depth=1&hl=en&ie=UTF8&langpair=en%7Cno&rurl=translate.google.com&u=
http://christoffersendesign.com/tam/&usg=ALkJrhgUGrRYKLL-pliCPAo61IrFfJL0jA">
    <img src="wp-content/themes/crescendo/images/Norway.png" height="30" width="30">    
  </a>

0 个答案:

没有答案