Skip to main content

How know Base Path of Drupal in JavaScript

$(document).ready(function() {
alert(Drupal.settings.basePath);
});