problems with functions

wxdqz

New Member
I want to write a function that will creat a link for me, it's so hard to explain but here I go.

I'll put the funtion in a separate .js file and in the main page I'll have something like this (I'm not entirely sure how to get a function to work on the page so I'll just guess):

<script language="javascript">
link(hi there)
</script>

and the link written would be

<a href=http://www.webdeveloper.com/forum/archive/index.php/"hi there.html">hi there</a>

Can anyone help me (tell me) what the function in the .js file should be and how I could "activate" the function on the page please?
 
Back
Top