How to install OS on a laptop with no CD ROM or floppy disk drive?

well i never tried it but what you may have to do is write the OS on an other computer by linking the harddrive of the laptop to a computer with a CD ROM drive. afteer you write the OS on the harddrive you place it back on the laptop with no drives.