Others

How to Fix Forced Scrolling When Embedding Microsoft Forms on a Website

Steve KSteve K Oct 15, 2026 869 views

Question details

The user needs to prevent their website from automatically scrolling down to an embedded Microsoft Form once the page and iframe finish loading.

How to Fix Forced Scrolling When Embedding Microsoft Forms on a Website
Product
Microsoft Forms
Device & OS
Windows 11
Scenario
Embedding a Microsoft Form via an iframe into a custom website.
Observed behavior
After a few seconds of loading, the browser automatically shifts focus to the form and scrolls the webpage downward. This issue primarily affects Windows browsers like Chrome and Edge, but not Apple devices.
Before you start

Verify that your website code does not contain external JavaScript or conflicting focus commands that actively pull the browser view toward the iframe container upon loading.

Solution 1Recommended

Isolate the Issue with Minimal Iframe Testing

Determine if the scrolling behavior is caused by a conflict with your website's scripts or if it is an inherent Microsoft Forms embed issue.

Browser behavior can vary when rendering iframes, especially if the embedded content contains internal scripts that request focus. Testing with a clean slate helps identify the root cause.

1
Create a minimal test page

Set up a blank HTML page containing nothing but the Microsoft Forms embed iframe code to rule out interference from your site's existing CSS or JavaScript.

2
Test across different platforms

Load the minimal test page in Google Chrome and Microsoft Edge on a Windows 11 machine, and compare the behavior against macOS devices to confirm if it is an OS-specific browser rendering issue.

3
Inspect page-load events

Use your browser's Developer Tools (F12) to monitor network and console events, ensuring no 'autofocus' attributes are inadvertently triggered by the form's internal scripts.

Isolate the Issue with Minimal Iframe Testing
Cross-Origin Restrictions: Due to cross-origin security policies (CORS), you cannot alter the internal behavior or scripts of the Microsoft Form running inside the iframe from your parent website.
Free Microsoft Office alternative

Looking for a Seamless Document and Form Experience?

While troubleshooting complex website embedding issues with Microsoft Forms, streamline your daily workflow with WPS Office. As a fully compatible, lightweight, and free alternative to Microsoft Office, WPS Office offers comprehensive tools for Word, Excel, PowerPoint, and PDF files without weighing down your system.

Create, edit, and share documents with seamless Microsoft Office format compatibility.Lightweight architecture ensures fast load times on all Windows and Mac devices.Built-in PDF editing tools for managing digital forms and documents.Familiar user interface requires no learning curve for easy migration.
microsoft office alternative - wps office

Frequently Asked Questions

Why does an embedded iframe cause a webpage to scroll down?

This usually happens when the content inside the iframe includes an active element or script that requests browser focus (like an 'autofocus' attribute on a form field) immediately after it finishes loading.

Does this Microsoft Forms scrolling issue affect all operating systems?

Based on user reports, this specific forced scrolling behavior appears to be isolated to Windows environments, notably affecting browsers like Google Chrome and Microsoft Edge on Windows 11, while Apple devices render the page normally.

Can I use JavaScript to prevent the iframe from scrolling my page?

You can attempt to intercept the scroll behavior using JavaScript on your parent page by tracking the scroll position before the iframe loads and forcibly restoring it, though this can sometimes result in a jittery user experience.