Sharepoint page after navigation from main page to subpage, not landing at the top of the subpage

Devidasan Nirmala 31 Reputation points
2022-07-29T12:00:39.597+00:00

Sharepoint page after navigation from main page to subpage is not landing at the top of the subpage. After the subpage loads fully, it scrolls down automatically and lands inthe portion where we have embed code to have a list. This is causing users to miss the information at the top of the page.

Writing to check if there are any leads from you experts on this topic.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,227 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,679 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,674 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,575 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Yanli Jiang - MSFT 21,611 Reputation points Microsoft Vendor
    2022-08-02T09:50:49.437+00:00

    Hi @Devidasan Nirmala ,
    According to your description, "the portion where we have an embed code (iframe) to embed list" should be a web part.
    I can't reproduce your problem, so I suggest doing troubleshooting:
    Delete the web part and reload the page to see what happens.
    If the problem disappears after deleting it, it is recommended to describe the details of your embedded list when you come back and give feedback.

    Thanks,
    Yanli Jiang

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

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Devidasan Nirmala 31 Reputation points
    2022-08-02T10:22:05.777+00:00

    Hi,

    Thanks for your prompt response and suggestions.

    After deleting the web part and reload the page the problem disappears. When added back it appears again.

    Here is the iframe code used.

    <iframe src="<Link to the list>" style="border:0px #ffffff none;" name="myiFrame" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="450px" width="600px" allowfullscreen="" hidecolumnheader="true" </iframe>

    Also tried the below, but no luck.

    <iframe onload="window.parent.parent.scrollTo(0,0)" src="Link to the list" style="border:0px #ffffff none;" name="myiFrame" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="450px" width="600px" allowfullscreen="" hidecolumnheader="true"></iframe>


  3. Nirmala D 1 Reputation point
    2022-08-04T09:44:11.737+00:00

    Yes, the focus doesnt stay at the top of the page rather shifts to the web part.

    I have already tried to create a new Page and add the web part. The problem still exists.

    0 comments No comments