If I, for example, on this page
www.example.com/admin/bridge/boilerplate
What is the best way (using simple javascript or jQuery (without loading another plugin) to go up one level, like
www.example.com/admin/bridge
We are currently using
window.history.go(-1);
which interferes with the submitted forms, etc. This is usually used for such a function:
$("button.cancel").bind("click", function( e ){ window.history.go(-1); e.preventDefault(); });
source share