JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Wo finde ich alle Eigenschaften für alle HTML-Elemente?
Posted on 08. Gesendet am 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Juni 2009 von Dragos in Coding, JavaScript und Ajax
You think you're good at JavaScript? You think you're in JavaScript gut? Ok. OK. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Hier ist eine Frage, die JavaScript-Weisheit Test werden: Wie viele Eigenschaften hat ein DIV-Element haben?
Your answer is 5? Ihre Antwort ist 5? Because there is the name, id, class, style or title property. Da ist der Name, ID, Klasse, Stil oder Titel-Eigenschaft. Maybe your answer is a little bit more than 5, but would you be surprised if I told you that there are more than 60 properties for the div element (62 in total, I think)? Vielleicht ist Ihre Antwort ist ein bisschen mehr als 5, aber würden Sie überrascht sein, wenn ich Ihnen sage, dass es mehr als 60 Eigenschaften für das div-Element (62 insgesamt, denke ich)? Don't worry, me too I was surprised when I found out about it. Keine Sorge, auch mir, ich war überrascht, als ich feststellte, dass darüber. And all these properties are there to help you better interact with your element and with the client. Und alle diese Eigenschaften sind da, um Ihnen helfen, besser mit Ihrem Element und mit dem Kunden zu interagieren.
Here's a list of div properties: Hier ist eine Liste der div-Eigenschaften:
I was talking about the div element, but the other elements do also have dozens of properties that you might never heard of before. Ich sprach über die div-Element, aber die anderen Elemente haben auch Dutzende von Eigenschaften, die Sie nie zuvor gehört. Find all properties for the elements you're interested in at Java2s.com . Finden Sie alle Eigenschaften für die Elemente, die Sie sind in an Java2s.com interessiert. Good luck discovering the new possibilities of JavaScript! Viel Glück entdecken die neuen Möglichkeiten von JavaScript!
Related posts: In Verbindung stehende Pfosten:
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Wie in den Index zu erhalten (Position innerhalb einer Gruppe) eines Objekts mit jQuery?
- JavaScript: Get anchor from URL JavaScript: Get Anker von URL
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Send-Funktion als Parameter an eine andere Funktion (Rückrufe)
- Javascript: How to validate email address with JavaScript? Javascript: Wie für die Validierung der E-Mail-Adresse mit JavaScript?
- PHP: Get all files and folders from a directory (folder) PHP: Holen Sie sich alle Dateien und Ordner aus einem Verzeichnis (Ordner)













































