title: Microsoft JScript runtime error using window.location in IE8
body: <p>I'm having a weird error in my code.
  I'm getting an error:
  Microsoft JScript runtime error: object doesn't support this action.
  I'm using fullcalendar and on an event click I want to open the even details in the same window.  Oddly enough, this works fine in Chrome.  I also want to note that on an XP system it works fine both in IE8 and Chrome, while in Windows 7 chrome works fine and IE8 gives the error.</p>
  
  <p>Here is a screen shot:
  <img src="https://i.stack.imgur.com/CkNds.jpg" alt="alt text"></p>
  
  <p>Here is my view code:</p>
  
  <pre><code>    &lt;%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/HomePagesMaster.Master" Inherits="System.Web.Mvc.ViewPage&lt;Perspectiva.Models.EventViewModel&gt;" %&gt;
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"&gt;
      פרספקטיבה - לוח ארועים
  &lt;/asp:Content&gt;
  
  
  &lt;asp:Content ID="mainContent" ContentPlaceHolderID="PageContent" runat="server"&gt;
  &lt;!-- jquery scripts needed for for the calendar and datepicker --&gt;
      &lt;script src="&lt;%=Url.Content("~/Scripts/jquery-1.4.1.min.js")%&gt;" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="&lt;%=Url.Content("~/Scripts/jquery-ui-1.8.1.custom.min.js")%&gt;" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="&lt;%=Url.Content("~/Scripts/fullcalendar.min.js")%&gt;" type="text/javascript"&gt;&lt;/script&gt;
      &lt;link href="&lt;%= Url.Content("~/Content/jquery-ui.custom.css") %&gt;" rel="stylesheet" type="text/css" /&gt;
      &lt;link href="&lt;%= Url.Content("~/Content/fullcalendar.css") %&gt;" rel="stylesheet" type="text/css"/&gt;
  &lt;script type="text/javascript"&gt;
          $(document).ready(function() {
              $("#calendar").fullCalendar({
                  theme: true,
                  header: {
                      left: 'month, agendaWeek, agendaDay',
                      center: 'title',
                      right: 'next,prev'
                  },
                  buttonIcons: {
  
                      next: 'circle-triangle-w',
                      prev: 'circle-triangle-e'
                  },
                  monthNames: ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני',
                              'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'דצמבר'],
                  monthNamesShort: ['ינו', 'פבר', 'מרץ', 'אפר', 'מאי', 'יונ',
                                   'יול', 'אוג', 'ספט', 'אוק', 'דצמ'],
                  dayNames: ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'],
                  dayNamesShort: ['א', 'ב', 'ג', 'ד', 'ה', 'ו', 'ש'],
                  weekend: false,
                  aspectRatio: 2,
                  defaultView: 'agendaWeek',
                  isRTL: true,
                  axisFormat: 'HH:mm',
                  minTime: '6:00',
                  maxTime: '21:00',
                  events: "/Scheduler/EventData/",
                  allDaySlot: false,
                  eventClick: function(event, jsEvent, view) {
                      window.location(event.url);
                  }
              });
          });  
  &lt;/script&gt;
  
      &lt;br /&gt;
      &lt;div style="padding-bottom: 10px; text-align: center; font-size:xx-large; font-family: David;"&gt;לוח ארועים&lt;/div&gt;
  
      &lt;div id="calendar" style="font-size: medium"&gt;&lt;/div&gt;
      &lt;% if (Roles.IsUserInRole("manager"))
         { %&gt;
              &lt;div id="side" style="font-size:large; text-align: center; text-decoration: none;"&gt;               
                      &lt;br /&gt;
                     &lt;%= Html.ActionLink("הוסף ארוע חדש", "CreateEvent", "Scheduler") %&gt;                
              &lt;/div&gt;
      &lt;% } %&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>Any Ideas?</p>