I would like a script which allows people to click on a stumble upon button (or twitter) which includes some kind of coded refererence to the page that it comes from

I have this

<a href=' http://www.stumbleupon.com/submit?url=http://bloggerstop.net' target='_blank'><img alt='I Like It!' id='nobg' src='http://www.unclesirbobby.org.uk/forum/stumbleupon.png' width='122'/></a>

I want to change this to something like this

<a href=' http://www.stumbleupon.com/submit?url=object.this.htmlpage' target='_blank'><img alt='I Like It!' id='nobg' src='http://www.unclesirbobby.org.uk/forum/stumbleupon.png' width='122'/></a>
Notice on the second version the web address refered to has become

object.this.htmlpage

Can this be done