Hi Andrew Yes I want the onscreen mouse pointer to be over the division.
At the moment the mouse pointer is in the same position as the user clicked a link that launches the page that has multiple divisions on it and I want the pointer to move to a speciic division. Rob On 28 Oct 2013 at 12:14, Andrew Scott wrote: > > Rob, although the focus selects the element as far as the browser > goes. So > when you say the cursor, do you mean the physical user cursor? > Because that > will not work that way, if that is the case. > > Regards, > Andrew Scott > WebSite: http://www.andyscott.id.au/ > Google+: http://plus.google.com/113032480415921517411 > > > > On Mon, Oct 28, 2013 at 12:04 PM, Rob Voyle <[email protected]> > wrote: > > > > > Hi folks > > > > I am basically clueless about javascript and haven't found the > answer to my > > problem. > > > > I have a coldfusion page that I want the cursor to position itself > over a > > division > > (not an input field). The division contains a small image. > > > > I have tried the following code to no avail. > > > > <script type="text/javascript"> > > function pageFocus() { > > document.getElementById('mydivisionID').focus(); > > } > > > > window.onload = pageFocus; > > </script> > > > > Any suggestions? > > > > Thanks > > > > Rob > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~| > Order the Adobe Coldfusion Anthology now! > http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag= > houseoffusion > Archive: > http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid: > 6090 > Subscription: > http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm > Unsubscribe: > http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:6091 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
