Notifications
Clear all

Which statement should be used to call personalizeWebsiteContent based on the above business requirement?

1 Posts
1 Users
0 Likes
93 Views
(@casausisaiah)
Posts: 710
Noble Member
Topic starter
 

A developer at Universal Containers creates a new landing page based on HTML, CSS, and JavaScript TO ensure that visitors have a good experience, a script named personaliseContext needs to be executed when the webpage is fully loaded (HTML content and all related files ), in order to do some custom initialization.

Which statement should be used to call personalizeWebsiteContent based on the above business requirement?

  • A . document.addEventListener(‘’onDOMContextLoaded’, personalizeWebsiteContext);
    B. window.addEventListener(‘load’,personalizeWebsiteContext);
    C. window.addEventListener(‘onload’, personalizeWebsiteContext);
    D. Document.addEventListener(‘‘’DOMContextLoaded’, personalizeWebsiteContext);

Show Answer Hide Answer

Suggested Answer: B
 
Posted : 03/02/2023 6:43 am

Latest Salesforce JavaScript Developer I Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: