Multiple choice technology

To use JavaScript in a web part to use inside a SharePoint 2007 page which web part is the best choice:

  1. Content Query Web Part

  2. Content Editor Web Part

  3. Page Viewer Web Part

  4. List View Web Part

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Content Editor Web Part is the best choice for embedding JavaScript in SharePoint 2007 pages. It allows direct HTML/JavaScript input via source editing. Content Query, Page Viewer, and List View web parts do not support custom JavaScript injection.