Category Archives: dom

css: display vs visibility

ShareTip: Even invisible elements takes up space on the page. Use the “display” property to create invisible elements that do not take up space. Definition The visibility property sets if an element should be visible or invisible. Inherited: No Tip: … Continue reading

More Galleries | Leave a comment

multi level menu js less

ShareMeet the markup To start, we should use the best method for defining a navigation menu — a list. For this example, we will work on a simple HTML unordered list. {Line wraps are marked ». –Ed.} <ul> <li>Sunfishes <ul> … Continue reading

Posted in css, dom, javascript | Tagged , , | Leave a comment

dom event

ShareDOM Event interface Event handlers may be attached to various elements in the DOM. When an event occurs, an event object is dynamically created, and passed sequentially to the event listeners that are allowed to handle the event. The DOM … Continue reading

Posted in dom | Tagged , , | Leave a comment

iframes: Different ways to access it

ShareDifferent ways how to access iframes: document.getElementById(‘testiframe2′).src document.getElementById(‘testiframe2′).location.href frames['testiframe2'].src frames['testiframe2'].location.href frames[1].location.href frames[1].window.location.href frames['testiframe2'].window.location.href target=”testiframe2″ (loads only page2, not page1) Check out http://www.quirksmode.org/js/iframe.html for detailed explanation.

Posted in dom, html | Tagged , | Leave a comment

ie bug: form within a form not posting values

ShareYou might be wondering why you cannot post the values of some fields even it’s inside the form. Having a form within a form in your html code/dom is a BIG issue when it comes to ie. Some of the … Continue reading

Posted in dom, html, javascript | Tagged , , , | Leave a comment