1 Reply Latest reply on Mar 21, 2009 11:21 AM by deep_flash

    Pop up not working

      Pop up is not happening with this code. I dont even find a window opening. Can someone please help?
      Note that 'pf.html' is in the same directory.




        • 1. Pop up not working
          Level 1
          Ok, now i find that this piece of code works fine:

          function openwin(getctry){
          getURL('JavaScript:void(window.open("pf.html?ctry=Cuba","","toolbar=no,location=no,directo ries=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1024,height=768,left=0,top=0 "));');
          }
          var selectedCntry="Cuba"
          openwin("pf.html?ctry="+selectedCntry);



          .......but, this code does not work:

          function openwin(getctry){
          getURL('JavaScript:void(window.open('+getctry+',"","toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars=no,resizable=no,width=1024,height=768,left=0,top=0"));');
          }
          var selectedCntry="Cuba"
          openwin("pf.html?ctry="+selectedCntry);

          Where am i going wrong?