I'm not really sure what you're asking here. First, you can't program a
hyperlink to do much else, it's just a link. You can use it to display
additional information through JavaScript and the DOM, but it's really hard
to understand what you're looking for when you mean additional hyperlinks to
pages within a frame.
If you're linking from outside the frameset, then nothing can really be done
without performing a bunch of custom scripting to take a link and generated
it within a frameset (which also doesn't work well for search engines).
Can you give us an example of what you're looking to do so we can get a
clearer handle on what you're asking?