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

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 11  |  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. How can I open a window and select objects in that window?
  2. newWindow=window.open(document.URL);
  3. $('div#header',newWindow.document).hide();
  4. $('div#footer',newWindow.document).hide();
  5.        
  6. newWindow = window.open(document.URL);
  7. $(newWindow).load(function() {
  8.     $('#header', newWindow.document).hide();
  9.     $('#footer', newWindow.document).hide();
  10. });