Hello,

I have been searching for a JavaScript that will help me with this problem.

I have a form, with one input to be set to the directory of the current page.

example:

Real URL: http://www.site.com/folder/dir/page.html
What I want printed: http://www.site.com/folder/dir/

Can anyone give me a script, or point me in the right direction.

Thanks,
Jeremy Ross