Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.17 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Window.open and modifying DOM of new window
  2. newWindow = window.open(newUrl)
  3. var ul = newWindow.document.getElementsByTagName("ul")[0];
  4. ul.innerHTML = "new content";