> Hi, i'm using an xslt file that loads my 
> page - which does not use a body. 
>
> The problem i have is that everytime i 
> open the page the focus is on the submit 
> button. I don't really want that - where I
> just want no focus when the page opens 
> up. I geuss a javascript is needed but i 
> also dont have a body tag! 

You should rewrite your XSLT so that it generates valid HTML.

As for the focus, I don't think you can really have "no focus". You'll have to 
put it somewhere else. You can do this using the focus method on the "somewhere 
else" object:

document.forms[0].somefield.focus();

Or, I suppose you could call the submit button's blur method, which would move 
the focus to the next object in the tab order.

In either case, you could just put a JavaScript block at the bottom of the 
page, although using the BODY tag's onload event would be preferable. Again, 
there's no reason why you can't generate valid HTML from your XSLT.

Dave Watts, CTO, Fig Leaf Software

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300176
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to