开发者

Javascript:history.back is not working in XUL application

开发者 https://www.devze.com 2022-12-31 04:45 出处:网络
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 w

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

精彩评论

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