Questions tagged [dhtml]

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.

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 ), a client-side scripting language (such as ), a presentation definition language (such as ), and the .

DHTML allows scripting languages to change variables in a web page's definition language, which in turn affects the look and function of otherwise "static" HTML page content, after the page has been fully loaded and during the viewing process. Thus the dynamic characteristic of DHTML is the way it functions while a page is viewed, not in its ability to generate a unique page with each page load.

By contrast, a dynamic web page is a broader concept — any web page generated differently for each user, load occurrence, or specific variable values. This includes pages created by client-side scripting, and ones created by server-side scripting (such as , , or ) where the web server generates content before sending it to the client.


Resources :

747 questions
91
votes
5 answers

Child element click event trigger the parent click event

Say you have some code like this:
I don't want…
Joe.wang
  • 11,537
  • 25
  • 103
  • 180
80
votes
7 answers

How do I programmatically click on an element in JavaScript?

In IE, I can just call element.click() from JavaScript - how do I accomplish the same task in Firefox? Ideally I'd like to have some JavaScript that would work equally well cross-browser, but if necessary I'll have different per-browser JavaScript…
Bruce
  • 8,202
  • 6
  • 37
  • 49
79
votes
10 answers

Cross-platform, cross-browser way to play sound from Javascript?

I am writing a dhtml application that creates an interactive simulation of a system. The data for the simulation is generated from another tool, and there is already a very large amount of legacy data. Some steps in the simulation require that we…
Jake Stevenson
  • 3,009
  • 6
  • 35
  • 40
73
votes
4 answers

jQuery get the id/value of
  • element after click function
  • How can I alert the id of the
  • item clicked?
    • First
    • Second
    • Third
    • Fourth
    • Fifth
    (Anything that can replace the id may be value or…
  • dave
    • 1,669
    • 5
    • 24
    • 32
    72
    votes
    4 answers

    Set content of HTML with Javascript

    In a webpage I am calling a WebService that gives me an integer value. I need to display this value in a block of text. I am currently using an HTML . So far, I've found two methods of putting my value in a span. innerText() is an IE…
    Brian Beckett
    • 4,742
    • 6
    • 33
    • 52
    71
    votes
    17 answers

    jQuery: how to change tag name?

    jQuery: how to change tag name? For example: $1 I need
    $1
    Yes, I can Create DOM element
    Copy tr content to div Remove tr from dom But can I make it directly? PS: $(tr).get(0).tagName = "div"; results…
    puchu
    • 3,294
    • 6
    • 38
    • 62
    64
    votes
    6 answers

    Replacing all children of an HTMLElement?

    In my code, I fairly frequently need to replace all children of a certain HTML container with a new list of children. What is the fastest way to do this? My current approach is collecting all new elements into a DocumentFragment. The only way I've…
    Rawler
    • 1,480
    • 1
    • 11
    • 23
    61
    votes
    7 answers

    How to resize html canvas element?

    I have a canvas element defined statically in the html with a width and height. If I attempt to use JavaScript to resize it dynamically (setting a new width and height - either on the attributes of the canvas or via the style properties) I get the…
    russx2
    • 841
    • 1
    • 6
    • 7
    54
    votes
    4 answers

    decodeURIComponent vs unescape, what is wrong with unescape?

    In answering another question I became aware that my Javascript/DOM knowledge had become a bit out of date in that I am still using escape/unescape to encode the contents of URL components whereas it appears I should now be using…
    andynormancx
    • 13,421
    • 6
    • 36
    • 52
    51
    votes
    11 answers

    Is there a good in-browser code editor?

    We've all seen in-browser rich text editors, which allow you to edit colored/styled text in a WYSIWYG manner. But what about code editors, which automatically highlight code based on language rules as you type? Think Eclipse in a textarea (but…
    levik
    • 114,835
    • 27
    • 73
    • 90
    44
    votes
    3 answers

    TinyMCE API v4 windowManager.open - What widgets can I configure for the body option?

    I would like to fill the body of a modal dialog with custom HTML, generated by Javascript. The documentation for this method is mostly empty. I have only found examples for loading an external file or adding a textbox. Is there a documentation…
    Olav
    • 1,602
    • 2
    • 16
    • 21
    35
    votes
    2 answers

    Deep cloning vs setting of innerHTML: what's faster?

    I'm trying to figure out the most performant way of deep-cloning a DOM tree within the browser. If I start out with var div = document.getElementById("source"); var markup = div.innerHTML; What will be faster, var target =…
    levik
    • 114,835
    • 27
    • 73
    • 90
    30
    votes
    6 answers

    Alternative to DOMNodeInserted

    DOMNodeInserted is known to make dynamic pages slow, MDN even recommends not using it altogether, but doesn't provide any alternatives. I'm not interested in the element inserted, I just need to know when some script modifies the DOM. Is there a…
    Fábio
    • 3,291
    • 5
    • 36
    • 49
    30
    votes
    4 answers

    code to set a select box option value as an object

    in an html page i have got, i have a select box like this with values. i want to…
    Mithun Satheesh
    • 27,240
    • 14
    • 77
    • 101
    23
    votes
    7 answers

    Is automatically assigning focus bad for accessibility?

    If I have a form that is the main part of a page's content, will assigning focus to the first form field via JavaScript on page load have any negative effects on accessibility?
    racurry
    • 384
    • 1
    • 2
    • 9
    1
    2
    3
    49 50