[thelist] javascript link to popup window validation issue

Joel D Canfield joel at streamliine.com
Fri Apr 6 20:05:19 CDT 2007


I've been nasty sick for two weeks and just don't have the clarity to sort this out. Lack of validation on my newest site due to this nonsense.

Two links being writting in the footer:

  <script type="text/javascript">
    document.write('<a href="JavaScript:ThinWhiteJuke()">Open JukeboxG in a new window</a> ] [ <a href="JavaScript:IAmAWoman()">Watch the video of <em>I Am A Woman</em> by Jane Rivar</a>');
  </script>

with these functions in the header:

  <script type="text/javascript">
    function ThinWhiteJuke()
    {
      var url="/g/JukeboxG.asp";
      var attributes='menubar=no,scrollbars=no,status=no,resizable=yes,location=no,directories=no,menubar=no,left=24,top=24,width=366,height=512';
      MenuPage=window.open(url,"theSlave",attributes);
      self.name="theMaster";
    }
		
    function IAmAWoman()
    {
      var url="/g/IAmAWoman.asp";
      var attributes='menubar=no,scrollbars=no,status=no,resizable=yes,location=no,directories=no,menubar=no,left=24,top=24,width=366,height=512';
      MenuPage=window.open(url,"theSlave",attributes);
      self.name="theMaster";
    }
  </script>

I have no doubt there is a much simpler way to do this, which will probably also validate.

Do you know what that might be? (I've checked Jeff Howden's excellent articles at evolt.org but they don't directly apply, or my brain's borken, or both.)

Thanks ever so much.

joel

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 4/5/2007 3:33 PM
 



More information about the thelist mailing list