Connectivity impairment has frequently been associated with the pathophysiology of attention-deficit/hyperactivity disorder (ADHD). Although the connectivity of the resting state has mainly been studied, we expect the transition between baseline and task may also be impaired in ADHD children. Twenty-three typically developing (i.e., control) and 36 disordered (ADHD and autism-comorbid ADHD) children were subjected to connectivity analysis. Specifically, they performed an attention task, visual oddball, while their brains were measured by functional near-infrared spectroscopy. The results of the measurements revealed three key findings. First, the control group maintained attentive connectivity, even in the baseline interval. Meanwhile, the disordered group showed enhanced bilateral intra- and interhemispheric connectivities while performing the task. However, right intrahemispheric connectivity was found to be weaker than those for the control group. Second, connectivity and activation characteristics might not be positively correlated with each other. In our previous results, disordered children lacked activation in the right middle frontal gyrus. However, within region connectivity of the right middle frontal gyrus was relatively strong in the baseline interval and significantly increased in the task interval. Third, the connectivity-based biomarker performed better than the activation-based biomarker in terms of screening. Activation and connectivity features were independently optimized and cross validated to obtain the best performing threshold-based classifier. The effectiveness of connectivity features, which brought significantly higher training accuracy than the optimum activation features, was confirmed (88% versus 76%). The optimum screening features were characterized by two trends: (1) strong connectivities of right frontal, left frontal, and left parietal lobes and (2) weak connectivities of left frontal, left parietal, and right parietal lobes in the control group. We conclude that the attentive task-based connectivity effectively shows the difference between control and disordered children and may represent pathological characteristics to be feasibly implemented as a supporting tool for clinical screening.