It's the simple things that drive me crazy... Can someone peek at this short script?

Discussion in 'Javascript' started by Christopher, Aug 7, 2003.

  1. Christopher

    Christopher Guest

    Can someone tell me why this doesn't work? I'm trying to pop a page
    if someone exits a page and a checkbox is left unchecked.

    // Start onUnload script//
    function noBuy(){
    if (agree.checked == false )
    {
    newwindow=window.open('http://www.mysite.com','name','height=500,width=500,scrollbars=yes');
    if (window.focus) {newwindow.focus()
    return false;
    }
    else
    return true;}
    // End -->
     
    Christopher, Aug 7, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon
    Replies:
    5
    Views:
    12,171
    Scott M.
    Jan 17, 2010
  2. Shapper
    Replies:
    0
    Views:
    464
    Shapper
    Apr 29, 2005
  3. Senthoorkumaran Punniamoorthy

    Can someone give me a short explanation?

    Senthoorkumaran Punniamoorthy, Apr 5, 2004, in forum: Python
    Replies:
    4
    Views:
    539
    88Pro
    Apr 6, 2004
  4. =?Utf-8?B?V2lsbGlhbSBTdWxsaXZhbg==?=

    vs2005 publish website doing bad things, bad things

    =?Utf-8?B?V2lsbGlhbSBTdWxsaXZhbg==?=, Oct 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    743
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Oct 25, 2006
  5. shailesh
    Replies:
    1
    Views:
    1,067
    Tim Golden
    Mar 28, 2007
  6. Moon
    Replies:
    2
    Views:
    465
    Marshall T. Vandegrift
    Aug 29, 2007
  7. upyzl
    Replies:
    7
    Views:
    365
    CBFalconer
    Nov 19, 2008
  8. Replies:
    18
    Views:
    332
    Tad McClellan
    Feb 6, 2006
Loading...