Create a script for Google Docs (Google Apps Script)
Issue
When navigating through links within a Google document (link from text to a heading within the same document), there is no way to return to the original location in the document - only scroll and manually search for it.
Document: https://docs.google.com/document/d/1C1Bjc0kJI0x2GBLp47F7cgQWzG5vz6146Ow9ebC28es/edit?usp=sharing
Task
An integrated script is needed in the document with the following functionality:
- On the left side of the text at the top of the page, display a menu:

- Buttons function as standard browser buttons, but at the document level:
When the "back" button is clicked, the document scrolls to the position in the document from which the user followed an internal link. On subsequent clicks, it scrolls to the previous position and so on.
When the "forward" button is clicked, it scrolls to the next positions if the user had previously clicked the "back" button. - If the beginning or end of the chain is reached and there is nowhere to go, deactivate the corresponding buttons.
- The "Home" button scrolls the document to the beginning.
Additional Requirements
- The script should work in a shared document for users without the right to make changes (rights "Reader").

- The script should work in Chrome, Edge, and Firefox.
-------------------------------------
If this functionality cannot be implemented using a floating menu with buttons, please suggest another solution to the described problem.
-
дайте линк на пример документа
-
Current freelance projects in the category Javascript and Typescript
Commercial on-premise video communication platform "ViM"It is required to develop an on-premise video conferencing system with a basic calculation for 100 simultaneous connections (10 isolated rooms of 10 people each). The platform should have a built-in architecture for future horizontal scaling up to 1000 users by adding new media… Javascript and Typescript, Web Programming ∙ 2 hours 13 minutes back ∙ 17 proposals |
I am looking for a mentor with Claude Code to launch a web project from scratch.Brief about the task: I am a beginner with no programming experience. I have a ready specification for website development (42 pages, Next.js, PostgreSQL). I want to implement it myself using Claude Code - I need a specialist who will set up the environment and teach me how to… Javascript and Typescript, Tuition ∙ 1 day 5 hours back ∙ 17 proposals |
Website design updateIt is necessary to update the design of the existing website using HTML, CSS, JS: refresh the appearance, make it modern and responsive for mobile devices. Smooth animations and interactive elements need to be added. HTML & CSS, Javascript and Typescript ∙ 1 day 23 hours back ∙ 87 proposals |
Consultation and audit of the current project on Odoo 19 Community EditionWe are looking for an Odoo Developer — a solo developer with experience in Odoo 19 Community Edition, including using Claude Code. We need a specialist who has successfully implemented projects in Odoo and practical experience in development using Claude Code. Important: we only… C & C++, Javascript and Typescript ∙ 2 days 5 hours back ∙ 7 proposals |
Online clothing storeNeed a developer for an online clothing store Looking for an experienced developer to create a full-fledged online clothing store with a drop model of sales. What needs to be done: 6 pages: home, product, cart, checkout, account, admin panel Login via Google account Cart and… HTML & CSS, Javascript and Typescript ∙ 4 days 2 hours back ∙ 101 proposals |