Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Trouble with forms in js file



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
Rune Thandy



Joined: 31 Aug 2006
Posts: 1

PostPosted: Thu Aug 31, 2006 2:16 pm    Post subject: Trouble with forms in js file Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap