External onclick handler for entry preview.