![]() ![]() We hide it by setting its style.display attribute as none.ģ. We assign hiddenText as the id of our hidden text block. The trick to include a drop down text in your web page. Assign an id to the text block you want to hide initially. When the attribute is set as none, the HTML element is hidden and it doesn't take up any space just like it doesn't exist.Ģ. When the style.display attribute is set as inline, the HTML element is shown on the web page. This function accepts on argument elementId which is the unique id of the HTML element you want to toggle. Var element = document.getElementById(elementId) Of course, your readers must enable Javascript in their browsers.ġ. To implement it, you need to use Javascript. Just write down several outlines and when the readers click on any of them, a hidden text block would be dropped down to shown the details. ![]() You want to make your web page neat and concise but you have too much information to share? You can achieve both by using the drop down text on your web page. The trick to include a expandable drop down text in your web page. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |