That can be done with some code in a custom module...
In the example below I'm assuming your content type is called article, and articles have a field called category, and when the category is Javascript then we unpublish the node.
First we need to modify the node form and add a new submit handler that fire after the one that saves the node (the order here is important):
function YOUR_MODULE_NAME_form_alter(&$form, &$form_state, $form_id) {
if($form_id=='article_node_form') {
$form['actions']['submit']['#submit'][] = 'article_node_form_custom_submit';
}
}
Now we need to define our custom form submit handler:
function article_node_form_custom_submit($form, &$form_state) {
// check if the category is Javascript
if($form_state['values']['field_category']['und'][0]['value']=='Javascript') {
// load the node
$node = node_load($form_state['values']['nid']);
// set the status to 0 to unpublish it
$node->status = 0;
// save the node
node_save($node);
// set a message to say what we've done
drupal_set_message($node->title.' has been unpublished as the category was set to Javascript.');
}
}
And that's all there is to it :)