开发者

Javascript:history.back is not working in XUL application

I have created a XUL application, it has got a link for navigating开发者_Go百科 to previous page. This is my link <a href="javascript:history.back();">Back</a>, unfortunately it is not working!!!

In firefox is working as expected, when I run it in XUL it is not working.

Why is it not working?


I'm no XUL expert, so I don't know why that didn't work, but I think what you're looking for is:

browser.goBack();

See:

https://developer.mozilla.org/en/xul/browser

https://developer.mozilla.org/en/XUL/Method/goBack


Did you look in your error console to see what the problem was? (Ctrl-Shift-J)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜