Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Back to Top button for the page main contents

Kasra Ayz July 17, 2025

As of now there is a back to top button added to the list view part of the confluence space

 

It would be very helpful to add similar or different method to get back to the beginning of the page for long ppages

Thank you

3 answers

1 accepted

2 votes
Answer accepted
Oleksii Melnyk _MOY Apps_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2025

I agree, this would help to get the necessary information faster

2 votes
Shawn Doyle - ReleaseTEAM
Community Champion
July 17, 2025

Hi @Kasra Ayz 

I agree.  

 

This however isn't the best forum for suggestions.

You can make Confluence suggestions here: Confluence Suggestions 

 

Kasra Ayz July 17, 2025

Thanks for teh info, if possible please help me figure out how to create a jira request/issue, with the link provided I'm not able to create a new instance

Regards

0 votes
Cedric
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 3, 2025

Not sure Atlassian will implement this basic feature one day so I personally use a userScript on my browser with TamperMonkey extension on Chrome (available probably on many other browser).

// ==UserScript==
// @name BackToTopConfluence
// @namespace http://tampermonkey.net/
// @version 2025-10-03
// @description try to take over the world!
// @author You
// @match https://youtcompany.atlassian.net/wiki/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net
// @grant none
// ==/UserScript==
(function() {
if (!document.getElementById('custom-back-to-top')) {
const btn = document.createElement('button');
btn.id = 'custom-back-to-top';
btn.innerHTML = '↑';
btn.title = 'Back to top';
btn.style.position = 'fixed';
btn.style.bottom = '20px';
btn.style.right = '80px';
btn.style.zIndex = '99999';
btn.style.background = '#0052cc';
btn.style.color = 'white';
btn.style.fontSize = '24px';
btn.style.width = '48px';
btn.style.height = '48px';
btn.style.borderRadius = '50%';
btn.style.border = 'none';
btn.style.cursor = 'pointer';
document.body.appendChild(btn);

btn.onclick = function() {
// Scroll global window
window.scrollTo({ top: 0, behavior: 'smooth' });

// Scroll all scrollables big containers (for SPA Confluence Cloud)
let scrolled = false;
// Walk on all visible scrollable elements
document.querySelectorAll('div, main, section').forEach(el => {
if (
el.scrollHeight > el.clientHeight + 20 && // possible scroll
el.scrollTop > 0 && // already scrolled
window.getComputedStyle(el).overflowY.match(/auto|scroll/) // allowed scroll
) {
el.scrollTo({ top: 0, behavior: 'smooth' });
scrolled = true;
}
});
// Optionnal : if nothing has been scrolled, try on body (in some cases)
if (!scrolled) {
document.body.scrollTo({ top: 0, behavior: 'smooth' });
}
};
}
})();

I don't understand why it natively exists on the left panel which is useless. Better valuable to have it in the page imho.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events