javascript question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zester
    Confirmed User
    • Jul 2003
    • 5344

    #1

    javascript question

    after you open a popup, how does javascript know the opened document window has fully loaded and finished? there is a way in javascript to do that, I did it once...
    * Mainstream ? $65 per sale
    * new male contraception
  • mortenb
    Confirmed User
    • Jul 2004
    • 2203

    #2
    in the body tag of the document in the popup you can put onLoad="somefunction();"

    like <body onLoad="wheeimloaded('not rich');">

    Comment

    • Zester
      Confirmed User
      • Jul 2003
      • 5344

      #3
      Originally posted by mortenb
      in the body tag of the document in the popup you can put onLoad="somefunction();"

      like <body onLoad="wheeimloaded('not rich');">
      thanks, but the problem is it's at another domain and I have no control over it - that will give me "Access Denied"
      * Mainstream ? $65 per sale
      * new male contraception

      Comment

      • celebx
        Confirmed User
        • Jul 2001
        • 197

        #4
        <script>
        function functionname() {
        alert();
        }

        w=window.open('url');
        w.document.onload=functionname; // no ()
        </script>
        Message me for more info: ICQ 8322641 (@gmail.com).

        Comment

        • Zester
          Confirmed User
          • Jul 2003
          • 5344

          #5
          Originally posted by celebx
          <script>
          function functionname() {
          alert();
          }

          w=window.open('url');
          w.document.onload=functionname; // no ()
          </script>
          same problem: "Access Denied"
          * Mainstream ? $65 per sale
          * new male contraception

          Comment

          • celebx
            Confirmed User
            • Jul 2001
            • 197

            #6
            <script language="Javascript" type="text/javascript">
            function functionname() {
            alert();
            w.focus();
            }

            function openWindow(url) {
            w=window.open('about:blank');
            w.document.open();
            w.document.write('<html>' +
            '<head><title></title></head>' +
            '<body style="padding:0px;margin:0px;border:groove 2px;">' +
            '<iframe src="' + url + '" name="displayframe" frameborder="0" style="width:100%;height:100%;" onload="window.opener.functionname()"></iframe>' +
            '</body></html>');
            w.document.close();
            }

            openWindow('http://www.google.com/');
            </script>
            Last edited by celebx; 01-13-2005, 04:23 AM.
            Message me for more info: ICQ 8322641 (@gmail.com).

            Comment

            • Twe Russ
              Confirmed User
              • Jan 2003
              • 3493

              #7
              Nice..........

              Contact information - ICQ: 7.9.0.3.0.0 · AIM: no roach · E-Mail: roachito || @ || gmail || . || com
              [Friend Finder - Geo Targeting & Incredible Site Ratio] - [Credit Card Traffic - Make $65 Per Join]

              Comment

              Working...