Loss of vision for moments and which recovers completely in few seconds is called as transient ischemic attack
. It is because of momentary decreased blood supply to the visual pathway. It can be seen following head injury
because of of the effects of concussion
You need to undergo evaluation to find out the underlying cause preferably by a physician or neurologist
and treatment accordingly.