Top "Dhtml" questions

Dynamic HTML, or DHTML, is an umbrella term for a collection of technologies used together to create interactive and animated web sites by using a combination of a static markup language (such as HTML), a client-side scripting language (such as JavaScript), a presentation definition language (such as CSS), and the Document Object Model.

How do I retrieve an HTML element's actual width and height?

Suppose that I have a <div> that I wish to center in the browser's display (viewport). To do …

javascript html dhtml
jQuery document.createElement equivalent?

I'm refactoring some old JavaScript code and there's a lot of DOM manipulation going on. var d = document; var odv = …

javascript jquery html dom dhtml
Print <div id="printarea"></div> only?

How do I print the indicated div (without manually disabling all other content on the page)? I want to avoid …

javascript css printing dhtml
How do I attach events to dynamic HTML elements with jQuery?

Suppose I have some jQuery code that attaches an event handler to all elements with class .myclass. For example: $(function(){ $(".…

javascript jquery events dhtml
How to load up CSS files using Javascript?

Is it possible to import css stylesheets into a html page using Javascript? If so, how can it be done? …

javascript html css dhtml
Getting all selected checkboxes in an array

So I have these checkboxes: <input type="checkbox" name="type" value="4" /> <input type="checkbox" name="type" value="3" /&…

javascript jquery ajax dhtml
Redirect parent window from an iframe action

What JavaScript do I need to use to redirect a parent window from an iframe? I want them to click …

javascript iframe dhtml
Adding and removing style attribute from div with jquery

I've inherited a project I'm working on and I'm updating some jquery animations (very little practice with jquery). I have …

jquery css dhtml
jQuery get the id/value of <li> element after click function

How can I alert the id of the <li> item clicked? <ul id='myid'> <li …

jquery html dhtml
What is the best JavaScript code to create an img element

I want to create a simple bit of JS code that creates an image element in the background and doesn't …

javascript dhtml