General > Developers Corner

motdmenu.lua "back" button

<< < (2/3) > >>

EraYaN:
if you use and iframe

for setting it
document.all.FrameName.src=url;

and for the back button
frames['framename'].history.back();

(you should give your iframe a name AND id

krooks:
Thank you! I will give it a try the next chance I get!

JamminR:
I at least remembered it was going to be a 'document' property. See how helpful I was? :P (Yes folks, I'm joking)

krooks:
Hmm, I'm sorry to have to come back and ask a very simple question, but I really do.
I've searched google for a working implementation of the provided code, and code's like it (thanks again EraYaN), but I couldn't find anything that worked. and I have exhausted my own knowledge.

I'm actually surprised with myself because I usually don't have this hard of a time implementing pre-made java/php on my sites, and I do it a lot.

If you, or anyone has an extra minute to show how it might look, it would be a terrific help. no need to add all the body/head elements, obviously.

No rush.

edk141:
This won't be right, but something like

--- Code: ---<iframe id="browser" src="/frame.html"></iframe>
<a href="#" onclick="document.getElementById('browser').contentWindow.history.back();">go back</a>
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version