- Create Account

onload not work

Forums > Cascading Popup Menus: Feedback > onload not work
Author
Message

1) strinidad Group: Members
Posts: 2 Joined: 29 Nov 2005 Location: IP: 200.55.--.--
It is possible that when including pop_events in a web page the onload trigger on the body of that page not work

With onload I set the focus in different fields of the page

There  is some solution for this

Sorry for my english

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 210.54.--.--
Make sure the pop_events.js file is within the <body> not the <head> and all should be fine.

Alternatively, it's better practice to put all your JavaScript in external files, so perhaps move whatever you have in your BODY ONLOAD into the pop_events file too.

Good luck - Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.