User Tools

Site Tools


own_js_code

This is an old revision of the document!


Own JS code

XPath

Récupérer des nœuds DOM via une XPath :

function getNode(xpathStmt, node) {
	return document.evaluate( xpathStmt, node, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ).singleNodeValue;
}
own_js_code.1381135733.txt.gz · Last modified: 2013/10/07 10:48 by ginko