Changing popup content
问题 I'm opening a popup using popup = window.open(....) and then trying to insert some html into a div in the popup. popup.document.getElementById('div-content').innerHTML = "hello world"; doesn't do anything however, popup.document.getElementById('the-field').value = "Hello There"; changes the content of a field with an id="the-field". Any idea why one is working but not the other? How can i replace the content of the div? hope you can help. EDIT: the popup <!DOCTYPE html> <html> <head> <title