Is it possible to make it so when a page loads on the net it redirects to another page in java script, if so how ?

If this cannot be done then how do i open a new window at a certain address ?