Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8847515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:12:28+00:00 2026-06-14T12:12:28+00:00

I am running a piece of JScript code in the OnLoad event on an

  • 0

I am running a piece of JScript code in the OnLoad event on an MS Dynamics CRM 2011 form, and wish to set the document title (i.e what’s displayed in the IE window/tab for this page) through the script.

I have made the following call:

document.title = newtext;

but this is not working. When I inspect what is happening using F12, I see that the pre-existing document.title value is “Holding: “. However, the document.title of the actual tab in my browser is “Holding: – Microsoft Dynamics CRM”

I think the problem may be that I am working in a subform (or maybe an iFrame?) rather than in the actual document that the user is navigated to. Is there any way I can set the parent document’s title?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:12:29+00:00Added an answer on June 14, 2026 at 12:12 pm

    Not sure if this will work for you, but this is our setDisplayName function that updates both the title, and the CRM Div display name:

    /*
    Updates the display name of the entity, both in the name div, and the Page Title
    */
    setDisplayName: function (name) {        
        // Updates the Document Title
        var title = parent.document.title;
        var start = title.indexOf(':') + 2;
        var end = title.lastIndexOf('-') - 1;    
        parent.document.title = title.substring(0, start) + name + title.substring(end);
    
        // Sets the div Name
        document.getElementById("form_title_div").childNodes[2].childNodes[0].innerText = name;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm simply running a small piece of code in a button click event of
I'm trying to execute a long-running piece of code in a background thread and
Running the static analyzer on this piece of code: - (id) readForeignPref { CFPropertyListRef
I get ConcurrentModificationException in the following piece of code when i running the code
I'm running a piece of code within a web page that queries the IIS
I am running the following piece of code under the Marmalade SDK. I need
I have a piece of PHP code running on Windows that I have scheduled
Let's say I have this piece of code running inside a loop where $fid
I am running this piece of code, for de-selecting a word a user selected
While running through a piece of code for performance tuning, i noticed that the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.