Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Prevent Firefox to auto-scroll to an HTML embedded iframe

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=""></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


Firefox 69.0.3 (64 Bit)
Confluence Server 6.15.4

1 answer

1 accepted

0 votes
Answer accepted

Got it myself. Here is the solution:


<embed src="" width="400" height="240" id="my_div" style="display:none;">

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



setTimeout(func1, 2000);


function func1()


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



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

487 views 0 12
Read article

Atlassian Community Events