Forums

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

Prevent Firefox to auto-scroll to an HTML embedded iframe

Alexander Wirtz
Contributor
October 30, 2019

Hello Confluence Community

we have an Iframe macro embedded into one of our dashboards.  Somehow firefox will auto-scroll to that iframe upon opening the page. 

Code looks like this: <IFRAME WIDTH=500 HEIGHT=300 FRAMEBORDER=0 src="https://app.smartsheet.com/b/publish?EQBCT=29XXXXXXXXXXXXXXXXXXX50"></IFRAME>

This is disturbing because you can only use the top navigation one you scroll back up.

This problem does not appear in other browsers like Chrome or Edge. 

We noticed that firefox is writing an "#" at the end of the URL. 

Did someone had the same problem and managed to fix it? 

Kind regards
Alex

 

Firefox 69.0.3 (64 Bit)
Confluence Server 6.15.4

2 answers

1 accepted

1 vote
Answer accepted
Alexander Wirtz
Contributor
October 31, 2019

Got it myself. Here is the solution:

 

<embed src="https://app.smartsheet.com/b/publish?xxxxxxxxxxxxxxxxxxxxxxxxx" width="400" height="240" id="my_div" style="display:none;">

<script type="text/javascript" language="javascript">

window.onload=function()

{

setTimeout(func1, 2000);

};

function func1()

{

document.getElementById("my_div").style.display = "block";

}

</script>

0 votes
Patrik Štoural February 27, 2025

Hi, I know this is an old issue, but it still exists. A bug request was created, and you can follow it and vote for it. 
[CONFCLOUD-80933] Confluence page with iframe scrolls down to iframe directly upon editing the page - Create and track feature requests for Atlassian products.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events