In Chapter 7, you learned about adding custom JavaScript code to the Microsoft Dynamics CRM entity forms and attributes. Microsoft Dynamics CRM will automatically take all custom scripts offline to the client computer—you cannot specify some scripts to run offline or online only. Therefore, you need to make sure that your scripts will not encounter errors when they run offline disconnected from the server. Table 7-2 from Chapter 7 lists global functions available to you for detecting which client the user is on and whether the user is online or offline. You will see an example of this when we create our offline IFrame in the following section.