Jump to content

Invible & Focus


gloeg

Recommended Posts

I have 3 questions:1 document.rs.stof1.focus() --> is this the good way to focus on a button2 can I make some buttons invisible until another button is pressed3 how can I right-align a button (style="align:right")?

Link to comment
Share on other sites

In my experience, focus() is really only useful for putting a live cursor in text elements. Every button does have a click() method, if that's what you really want.You can toggle the display property or visibility property to make any element visible or invisible. The properties behave differently, though, so experiment.To push any page element toward one side of its container, use CSS, something like float:right; You may need to set the element to display:block for this to work correctly.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...