<a href="somewhere.html" target="otherwindow">Click Here</a>
If there is currently no window open with the name otherwindow, a new window will open. Future clicks on links with the target attribute otherwindow will reuse that window.
<script> window.name = "otherwindow"; </script>
Including this code in the <head> element of the www.example.com home page will take care of renaming the window.
In this case, we've used the name otherwindow. But when you use this technique in practice, we recommend using a name that is fairly unique to your site, such as examplecom_otherwindow. Window names like help or main can lead to confusion when the user navigates to other sites which unexpectedly reuse that window in strange ways.
Got a LiveJournal account? Keep up with the latest articles in this FAQ by adding our syndicated feed to your friends list!