我正在为一个谷歌网站的小部件工作,我遇到了这个小问题。如果我有一个html链接<a href="http://www.dw-picture.com/" style="color: white; text-decoration: none;">Home </a>
和用户点击链接,它将打开内部的小部件本身,但如果我的html是<a href="http://www.dw-picture.com/" target="_blank" style="color: white; text-decoration: none;">Home </a>
,它将打开一个新的链接在浏览器内,有没有一种方法在浏览器内导航,而不是小部件?
使用target="_parent"
将解决这个问题。