October 12, 2002
Setting links to open in new windows - revisited

Wow. That was too easy.

It never ceases to amaze me. Just about anything you could ever want to know is out there on the Internet. And Google is usually so good at finding it quickly and easily.

For S&Gs, I decided to do some hunting for a script to give the user the option of whether links should open in the same window, or a new window. This was prompted after I visited a blog that had this option.

I'm happy to report that it couldn't have been much simpler to make this change.

Just go here, and follow the incredibly simple two steps. I didn't even have to modify any of my existing entries.

I did make one little tweak to the the form code. The standard is to default to not having the check-box checked, and therefore opening links in the same window. I prefer to have links open in a new window, so I added the CHECKED option to the FORM tag in the INPUT TYPE section.

End of quandary / debate. Now you can have it your way. The default is (now) to open links in a new window. Un-check the box if you want to have links open in the same window.

Someday, maybe I'll even set a cookie to remember the visitor's preference (but don't count on it).

Digg It!  Digg It!   del.icio.us bookmark  Bookmark it!  

Posted by David at October 12, 2002 07:14 AM
Comments

Hmmm. Now that's useful. And simple. I can't believe we didn't think of it ourselves.

Posted by: Dennis on October 12, 2002 11:57 AM
Post a comment

Ability to add comments removed due to spam.

If you wish to add a comment, send an email to comments at blogdom dot org

replacing the at above with @ and the dot above with .