Open link in new window

Can it be done without buttons and just code?