'To and fro' is an idiom. Here 'to' is used as a/an -

Answer: 
adverb
'To and fro' is an idiom. Here 'to' is used as a/an -