It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Trouble with forms in js file

Trouble with forms in js file

Postby Rune Thandy on Thu Aug 31, 2006 1:16 pm

I would like to make a js file which sets the focus on an element in a form.
But it has to work from different webpages.
So in a webpage it should look something like this:

<script>
set_focus(form1,element1)
</script>

And in the js file it should look something like this:

function set_focus(page_form,page_element)
{
document.page_form.page_element.focus()
}

I know from experience that this doesn't work, but I don't know how to get it right.
Can somebody help me?
Rune Thandy
 
Posts: 0
Joined: Thu Aug 31, 2006 1:13 pm

Who is online

Users browsing this forum: No registered users and 4 guests