Thursday, July 23, 2009

test code highlighter

  1. var popupWin = null;  
  2.   
  3. function openPopup() {  
  4.   var url = "popup.htm";  
  5.   popupWin = open( """popupWin""width=500,height=400" );  
  6.   if( !popupWin || popupWin.closed || !popupWin.doSomething ) {  
  7.      popupWin = window.open( url, "popupWin""width=500,height=400" );  
  8.   } else {  
  9.      popupWin.focus();  
  10.   }  
  11. }  
  12.   
  13. function doSomething() {  
  14.   openPopup();  
  15.   popupWin.doSomething();  
  16. }  

No comments: