Button (not working) behaves differently after windows 11 upgrade

Rjeyabalaji12 0 Reputation points
2024-09-24T10:24:02.41+00:00

I have an application that consists of a login button which was working fine on edge in Windows 10, but after upgrading it to windows 11 the buttons seems not clickable. the code have a line document.getElementById("link").disabled=true which should disable the button that is what happening right now on windows 11 (edge), but why it was working fine on windows 10 (edge) and other browsers

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,311 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,566 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
982 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,587 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daisy Zhou 23,346 Reputation points Microsoft Vendor
    2024-09-24T14:08:46.9166667+00:00

    Hello Rjeyabalaji12,

    Thank you for posting in Q&A forum.

    It's possible that the behavior you're observing is due to changes in how the Microsoft Edge browser interprets your application code in different environments or versions. With major OS updates, there can sometimes be subtle changes or updates in the browser's rendering engine and JavaScript engine which could affect how certain code is executed.

    Here are a few steps to troubleshoot the issue:

    1.Check Edge Version:

    Ensure that the version of Microsoft Edge you were using on Windows 10 is the same version you're using on Windows 11. Browser updates can sometimes introduce changes that affect how JavaScript or HTML is processed.

    2.JavaScript Console Errors:

    Open the Developer Tools in Microsoft Edge (F12), go to the Console tab, and check for any JavaScript errors or warnings that might indicate why the button is not behaving as expected.

    3.Isolate the Problem:

    Create a minimal example that reproduces the issue. If the button works in isolation but not in the actual application, it could be an interaction between different parts of your code.

    You can also check if the problem occurs on a newly installed Win 11 machine with the same OS as the upgraded one.

    4.Cross-Browser Testing:

    Test the application on other browsers (e.g., Chrome, Firefox) on Windows 11 to see if the issue persists. This might help determine whether the issue is specific to Edge.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.