Hi,
so if I understand thisis what you want:
- On a page you have created you want to enter a javascript in the address bar
- In the page - you want to catch the result from the function you enter in the address bar
I'm not sure I understand the reason why you'd want to do this, so if you describe that perhaps my answer will not be very good.
But if you've created for example a function called test() on a page, and you are on that page when entering the javascript in the address bar, you are able to send the data into that function, and thus capturing the value in a parameter
javascript:function f(){return 'success'} test(f());void(0);
If you have this javascript on the page, it will be called and an alert with the text "success" will appear.
<script type="text/javascript">
function test(x)
{
alert(x);
}
</script>
I must say though, I can't imagine when to use this other than perhaps testing javascript functions on a page.