The dosage of midazolam varies depending on the age, weight, and medical condition of the child. Generally, the oral dose for preoperative sedation ranges from 0.25 to 0.5 mg/kg, with a maximum dose not exceeding 20 mg. Intranasal doses for seizure control typically range from 0.2 to 0.3 mg/kg. It is crucial to consult with a healthcare provider to determine the appropriate dosage for each individual child.