Région de recherche :

Date :

https://developer.mozilla.org › fr › docs › Web › API › Document › getElementById

document.getElementById - Les API Web | MDN

La méthode getElementById() de Document renvoie un objet Element représentant l'élément dont la propriété id correspond à la chaîne de caractères spécifiée. Étant donné que les ID d'élément doivent être uniques, s'ils sont spécifiés, ils constituent un moyen utile d'accéder rapidement à un élément spécifique.

https://www.w3schools.com › jsref › prop_win_opener.asp

Window opener Property - W3Schools

Learn how to use the opener property to access the window that created a new window. See an example of how to write text in the opener window using document.getElementById().

https://stackoverflow.com › questions › 10569374

How to set the innerHTML of some element in a window opened by a ...

I have some simple JavaScript code like this: function openWindow() { var mywindow = window.open("file.html"); mywindow.document.getElementById("foo").innerHTML="Hey you!!"; This function is called with an onclick event. The window opens fine, but the element's innerHTML does not change.

https://stackoverflow.com › questions › 3038931

window.opener.document.getElementById not working

You either need to pass that client ID to the popup window somehow (querystring, cookie, session, whatever) or hard code it. Alternatively, you may be able to put this line of JavaScript in a function on your parent page, and then call something along the lines of window.opener.functionName ().

https://www.w3schools.com › jsref › met_document_getelementbyid.asp

HTML DOM Document getElementById () Method - W3Schools

Learn how to use the getElementById() method to return an element with a specified id. See examples, syntax, parameters, return value, browser support and related methods.

https://developer.mozilla.org › en-US › docs › Web › API › Document › getElementById

Document: getElementById () method - Web APIs | MDN - MDN Web Docs

Learn how to use the getElementById() method to access an element by its unique ID in the document. See syntax, parameters, return value, examples, usage notes, and browser compatibility.

https://www.toutjavascript.com › reference › ref-window.document.getelementbyid.php

document.getElementById() - Référence du JS - Tout JavaScript.com

La méthode getElementsByTagName () retourne un tableau d'éléments (Notez le "s" à Elements). La fonction getElementById ("id") retourne le premier élément de querySelectorAll ("#id"). Equivalent dans d'autres langages.

https://www.javascripttutorial.net › javascript-dom › javascript-getelementbyid

JavaScript getElementById() - Selecting an Element By Id

The document.getElementById() returns a DOM element specified by an id or null if no matching element is found. If multiple elements have the same id, even though it is invalid, the getElementById() returns the first element it encounters.

https://javascript.programmer-reference.com › js-window-opener

[JavaScript] サブウィンドウから親ウィンドウを参照する(window.opener)

サブウィンドウから親ウィンドウを参照するには、 window.opener で参照できます。

https://openclassrooms.com › forum › sujet › window-opener-document-location-77551

window.opener.document.location - OpenClassrooms

if (window.opener.document.getElementById("pseudo").value.search(document.form.choix[i].value) == -1){ window.opener.document.getElementById("pseudo").value += document.form.choix[i].value+ ";";