How to make links open in the sidebar

A couple of people have asked me how I manage to open my Links in the “search” frame. It’s pretty simple really. I think I saw it first at DFWBlogs, but most recently at Scriptygoddess.

Here’s the down-low:

The link you want to open in the sidebar looks like this:

<a href=”javascript:void(_search=open(‘http://www.somesite.com/PAGE/YOU/WANT/TO/OPEN.htm’,’_search’))”>

On your “links” page (the one in the sidebar), put this between the <head> and </head> tags:

<base target=”_main”>

One more thing, use it sparingly. The only “OK” use in my eyes is for a “Links” page or something like that or a link to a definition. Whatever it is MAKE SURE YOUR SIDEBAR PAGE FITS IN THE SIDEBAR, not some wide image your in love with. That’s all I’m going to say about that.

Notes: Only works in PCs using IE – basically 90% of the internet surfers out there.

2 thoughts on “How to make links open in the sidebar”

  1. Is there a way, in Javascript, to go from the _search bar and target the _main … in Javascript. Oh, did I mention the method was in Javascript?

  2. Check this out: Click on the D/FW Blogs icon or click here. Is this the “Search bar” you’re talking about? If so, the above instructions are for you, my friend. Just be sure to set the >base href=”_main”< in between the two “head” tags on the page to be displayed in the “search bar”.

    Definitely using Javascript. If this doesn’t help, I’d recommend wsabstract.com or similar.

Comments are closed.