# navLinkWeekClick

> FullCalendar v6 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v6/navLinkWeekClick
>
> Latest version (v7): https://fullcalendar.io/docs/navLinkWeekClick.md

Determines what happens upon a [week-number](https://legacy.fullcalendar.io/v6/weekNumbers.md) nav-link click.

<div class='spec' markdown='1'>
view name (string), function
</div>

By default, the user is taken to the first week-view that appears in the [headerToolbar](https://legacy.fullcalendar.io/v6/headerToolbar.md).

A string argument can be provided that navigates the user to a specific view.

Also, a function argument can be provided that executes arbitrary code:

```js
var calendar = new Calendar(calendarEl, {
  navLinks: true,
  navLinkWeekClick: function(weekStart, jsEvent) {
    console.log('week start', weekStart.toISOString());
    console.log('coords', jsEvent.pageX, jsEvent.pageY);
  }
});
```

When a custom function is specified, the user will not automatically navigate to any view.
