Как "реализовать" назад и передать кнопки в iframe с JS?
Используйте объект window.history
.
// For the current window
window.history.back();
window.history.forward();
// For an iframe's window
iframe.contentWindow.history.back();
iframe.contentWindow.history.forward();
или
iframe.contentWindow.history.go(-1); // back
iframe.contentWindow.history.go(1); // forward
Кнопка в фрейме:
<input type="button" value="Back" onclick="history.back()">
Кнопка в родительском фрейме:
<input type="button" value="Back" onclick="frame_name.history.back()">