Sounds like you'll need to write a Word Add-In to do something like that.
Read this thread to get an idea of what's involved. I didn't get to read the whole thing because I'm actually "working" today.
EggHeadCafe Clickey
As for the part about opening Word inside of a browser, I've never had the wish to do that, but I found
this link that might help you.