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. Advertising

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. Senthoorkumaran Punniamoorthy

    Can someone give me a short explanation?

    Senthoorkumaran Punniamoorthy, Apr 5, 2004, in forum: Python
    Replies:
    4
    Views:
    389
    88Pro
    Apr 6, 2004
  2. =?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:
    609
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Oct 25, 2006
  3. shailesh
    Replies:
    1
    Views:
    802
    Tim Golden
    Mar 28, 2007
  4. Moon
    Replies:
    2
    Views:
    387
    Marshall T. Vandegrift
    Aug 29, 2007
  5. upyzl
    Replies:
    7
    Views:
    289
    CBFalconer
    Nov 19, 2008
Loading...

Share This Page