Iframe with HTML5 Viewer takes focus on page and forces page to jump to iframe on load.
I am embedding a HTML5 Viewer into our website. The iframe is located at the bottom of the page and onload, the page jumps down to the Iframe.
I have tried adding an anchor to the top of the page, but the iframe still forces the page to jump. From what I have researched, looks like the viewer takes "focus". Is there a way to make the viewer focus = "false" so that the iframe does not force the page to jump?
Or does anyone else have a workaround for this?
I am testing in Chrome and Firefox.
My viewer also has a startup workflow for a disclaimer, as well as a startup Workflow 5 workflow. Not sure if this plays into the issue or not.
You can see the issue here: https://www.brant.ca/en/shared-content/iframeloader.aspx
Thanks,
-
I had the same problem with the viewer stealing focus as well. My workaround for this was to use the iframe's 'sandbox' attribute.
0 -
Thanks for the info.
I tried using the Sandbox attribute and it does solve the focus issue, but leads to some viewer issues, so unfortunately this won't work for us.
I will continue to look for a workaround.0
Please sign in to leave a comment.
Comments
2 comments