Function is executing automatically

Function is executing automatically

Hello Everyone

I am failed to figure out that why this function is been calling automatically .. I am trying to invoke it from another function but even if i do not call this funtion from other method ,, still it is been executing.

  1. function

    tab(){

    var oTable = $('#example').dataTable(

    {

    "processing" : true,

    "ajax" : {

    "url" : "/Riyan/DataTableServlet",

    "dataSrc" : "demo",

    "type" : "GET"

    }

    });

    };