# Wopi iframe editor to scroll the page by page - For both edit mode and view mode

**URL:** <https://forum.collaboraonline.com/t/wopi-iframe-editor-to-scroll-the-page-by-page-for-both-edit-mode-and-view-mode/5274>\
**Category:** Installation & Configuration\
**Tags:** english-en\
**Created:** [December 2, 2026, 6:52am UTC](https://forum.collaboraonline.com/t/wopi-iframe-editor-to-scroll-the-page-by-page-for-both-edit-mode-and-view-mode/5274 "2026-12-02T06:52:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiranjeevi.yadav](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@chiranjeevi.yadav](https://forum.collaboraonline.com/u/chiranjeevi.yadav)\
**Post date:** [December 2, 2026, 6:52am UTC](https://forum.collaboraonline.com/t/wopi-iframe-editor-to-scroll-the-page-by-page-for-both-edit-mode-and-view-mode/5274/1 "2026-12-02T06:52:14Z")

</div>

Dear Developers,

I need some help setting up the scrollbar with Page Up and Page Down arrows. Additionally, I want the editor to scroll one page at a time by default, rather than jumping multiple pages.

Below is our .cshtml file content, which has inline CSS as well.

@{  
ViewBag.Title = “Collabora Online”;  
Layout = “~/Views/Shared/\_LayoutWopiHost.cshtml”;  
}  
@if (ViewData[“lockedInDesktopWordBy”] != null)  
{

  

  

  

  

  
This document is exclusively locked for editing via EDIT IN WORD by @ViewData[“LockedInDesktopWordBy”]  

  

  

  

  

  

  

  
}

 #collabora\_frameholder { height: 100%; width: 100%; }

```
body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-y: hidden;
}

#collabora_frame {
    border: 0;
    width: 100%;
    height: 100%;
}

.bannerWrapper {
    margin-top: -0.1em;
    margin-bottom: 0.25em;
}

.bannerContents {
    padding: 3px;
    height: 1.75em;
}

.bannerBody {
    height: 100%;
    width: 80%;
    float: left;
    padding-left: 2em;
    text-align: left;
    z-index: 2;
    position: relative;
    background-color: rgba(255,152,0,0.1);
    border: 2px solid #ff9800;
    border-left: none;
    border-right: none;
    margin-left: -1em;
}

.textParent {
    height: 100%;
    display: table;
}

.textChild {
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    color: #263238;
    font-family: Arial;
    font-size: 13px;
}

.bannerRight {
    height: 100%;
    overflow: hidden;
    z-index: 1;
    position: relative;
    background-color: rgba(255,152,0,0.1);
    border: 2px solid #ff9800;
    border-left: none;
}

```

Thanks

Jeevi

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [December 2, 2026, 7:05am UTC](https://forum.collaboraonline.com/t/wopi-iframe-editor-to-scroll-the-page-by-page-for-both-edit-mode-and-view-mode/5274/2 "2026-12-02T07:05:45Z")

</div>

Hi Jeevi

The editor answers with `Action_GoToPage_Resp`, which also gives the `PageCount`, so you know when you reached the last page. This needs version 26.04.2.4 or newer.

- [PostMessage API, Action\_GoToPage](https://sdk.collaboraonline.com/docs/postmessage_api.html#action-gotopage): the message, its response, and how to set up postMessage from your host page.

By the way, I see you have asked about quite a few things here since September, from the first WOPI setup and the host allowlist to fonts, watermarks and screen readers. I am curious: what product are you building Collabora Online into, and who uses it? A little about your setup (the version you run, and what your users mainly do with documents) would help us give answers that fit better.

Thanks  
Darshan
