Results 1 to 3 of 3
  1. #1
    ABW Ambassador
    Join Date
    January 17th, 2005
    After creating automated datafeed update scripts, when I get up in the a.m. my screen is filled with open browser windows. Is there a way in classic ASP to close the window once the script completes?

    To save time, I know there are javascripts and I know there are ways of converting these scripts to a format that runs outside a browser window and I'm sure there are PHP methods of doing it. I'm asking about an ASP method. My scripts run fine except for this detail.



  2. #2
    Full Member
    Join Date
    January 17th, 2005
    Will work only in Windows...
    <BODY onLoad="winload()">
    <OBJECT ID="WB" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
    <SCRIPT LANGUAGE="JavaScript1.2">
    function winload()
    if(navigator.appName=="Microsoft Internet Explorer")
    var BrowserVerStr =navigator.appVersion;
    parts = BrowserVerStr.split(";");
    var preBrowVer = parts[1]
    var BVNum=parseFloat((preBrowVer.substring(5,preBrowVer.length)))
    if (BVNum >= 5.5)
    <p>You have logged out</p>
    <p> <font color="red">For security reasons, we suggest you close this window.</font>
    <form name="form1" method="post" action="">
    <div align="center">
    <input type="button" name="cancel" value="Close Window" OnClick="Javascript:self.close();" >

    Pro Colleges Study Resources

  3. #3
    ABW Ambassador
    Join Date
    January 17th, 2005
    Thanks for that. My updates are all through the IE browser so that did the trick once I changed permissions.


  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Script to run a marketplace like Paydotcom or Clickbank
    By chicco0278 in forum Midnight Cafe'
    Replies: 2
    Last Post: June 12th, 2008, 04:27 AM
  2. php script to check for browser
    By animatic1 in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: December 15th, 2007, 10:25 AM
  3. Script To Turn Of Browser Blocks Wanted
    By jimmymac in forum Commission Junction - CJ
    Replies: 10
    Last Post: November 25th, 2003, 04:29 PM
  4. script to run a hotmeter site
    By breeze in forum Programming / Datafeeds / Tools
    Replies: 11
    Last Post: December 8th, 2001, 04:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts