当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - History.back only when redirected to google translate

问题描述:

Is it possible to make the history.back(-2) only to work when you have pushed the translate button and redirected to google translate?

Here is my code, i have no idea where to go from here...

<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>

分享给朋友:
您可能感兴趣的文章:
随机阅读: