I dont know if this code actually exits, however I can't figure how to do it.

You know how you can write javascript in a url of a website and write a command, I would like to do that except remotely.

So something like this:

load website remotely (without loading all the contents)
type command in url
display result

I thought this would work, but it didnt:

<script type="text/javascript">
javascript code
<a href="javascript:url_command">test</a>

I don't think this is possible as there is security issues with this - someone might get you ue-mails from gmail if you are already logged in.