Javascript 如何在xul中创建自己的后退/前进按钮?
尝试在xul中创建我自己的后退/前进按钮 我的代码:Javascript 如何在xul中创建自己的后退/前进按钮?,javascript,browser,firefox-addon,xul,xulrunner,Javascript,Browser,Firefox Addon,Xul,Xulrunner,尝试在xul中创建我自己的后退/前进按钮 我的代码: <label value=" ❀ Back " id="back_button" style="-moz-border-radius: 20px; -webkit-border-radius: 20px; -khtml-border-radius: 20px; border-radius: 20px;background:#C93E1D; width:100px; color:white;" onclick="history.go(-1
<label value=" ❀ Back " id="back_button" style="-moz-border-radius: 20px; -webkit-border-radius: 20px; -khtml-border-radius: 20px; border-radius: 20px;background:#C93E1D; width:100px; color:white;" onclick="history.go(-1);"></label>
单击xul按钮时,也尝试了history.back()。但什么也没发生
<button label="back" oncommand="history.back();"/>
这对我很有用:
document.getElementById("main-browser").webNavigation.goBack();