tags:

views:

47

answers:

2

I have created a XUL application, it has got a link for navigating 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.

Any idea, why it is not working.

Thanks, Rajeesh

+1  A: 

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

Motti
+1  A: 

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

machineghost