User Tools

Site Tools


own_js_code

Own JS code

XPath

Récupérer *un* nœud DOM via une XPath :

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