In javascript non si puo... ho visto che frequenti PHP, ti sposto