title: Visual Studio web browser control not running Javascript
body: <p>I'm using Microsoft Visual Studio C# 2015 and have encountered a problem. I'm creating a small Windows Forms Application program which uses the web browser tool. When it launches, it goes to a webpage which uses Javascript and doesn't launch these scripts. I don't know how to activate Javascript on the web browser control. IE works fine for me. I'm using Windows 8.1 64 bit. Here is the code:
  <strong>EDIT: I have already enabled javascript on IE since that website works perfectly when I use IE to access it.</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  namespace WindowsFormsApplication2
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
  
          private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
          {
  
          }
  
          private void Form1_Load(object sender, EventArgs e)
          {
              webBrowser1.Navigate("www.webpage.com");
          }
      }
  }
  </code></pre>