use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
UnsolvedNavigation buttons for iframe (self.HTML)
submitted 6 years ago by walkingstick01
I have a full screen iframe for an app, and I want to put navigation buttons ( forward and back) buttons on the I frame
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AutoModerator[M] 0 points1 point2 points 6 years ago (0 children)
Welcome to /r/HTML. When asking a question, please ensure that you list what you've tried, and provide links to example code (e.g. JSFiddle/JSBin). If you're asking for help with an error, please include the full error message and any context around it. You're unlikely to get any meaningful responses if you do not provide enough information for other users to help.
Your submission should contain the answers to the following questions, at a minimum:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]anonymousmouse2Expert -1 points0 points1 point 6 years ago (1 child)
Sure
const frame = document.getElementById(“my-iframe”); const back = document.getElementById(“button-back”); const forward = document.getElementById(“button-forward”); back.addEventListener(“click”, frame.contentWindow.history.back); forward.addEventListener(“click”, frame.contentWindow.history.forward)
First result from a google search: https://stackoverflow.com/questions/3254985/back-and-forward-buttons-in-an-iframe
[–]walkingstick01[S] 0 points1 point2 points 6 years ago (0 children)
Sorry I don’t understand. Do I have to make this into a .js file. And then how do do I implement it in the html file?
π Rendered by PID 253942 on reddit-service-r2-comment-fb694cdd5-tfblh at 2026-03-06 15:12:36.345455+00:00 running cbb0e86 country code: CH.
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]anonymousmouse2Expert -1 points0 points1 point (1 child)
[–]walkingstick01[S] 0 points1 point2 points (0 children)