Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 4343 | Replies: 5
![]() |
•
•
Join Date: Mar 2006
Location: Alabama
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
I have a third party product that I hit a link to from within a .vbs running unattended on a server. Hitting the link starts an update process. When I hit the link, IE opens and the link returns a page that is blank except for the following code.
Code:
<script type="text/javascript" language="JavaScript">
this.window.close();
</script>
End Code:
This causes a dialog box asking if the browser can be closed to be created. Is there a registry setting or some way around this?
Thanks in advance,
Benje
Code:
<script type="text/javascript" language="JavaScript">
this.window.close();
</script>
End Code:
This causes a dialog box asking if the browser can be closed to be created. Is there a registry setting or some way around this?
Thanks in advance,
Benje
•
•
Join Date: Mar 2006
Location: Alabama
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
I suspected that was the case. I guess I will have to write a script to run periodically that kills all the IE processes on the server.
Thanks for the response!
Thanks for the response!
•
•
•
•
Originally Posted by tgreer
Sorry, you cannot. This is by design: a script on one page should never be allowed to close a page on another domain wtithout first asking the user. This behavior is built into the browser itself.
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 108
or simply build a program that monitors for the existance of that window (the asking window) and then closes it. Attached is the source code (in VB6) should you want it... and you can download the program itself (setup and all) from here:
http://www.aftermath.net/~coma/daniweb/asknot.zip
enjoy.
http://www.aftermath.net/~coma/daniweb/asknot.zip
enjoy.
•
•
Join Date: Mar 2006
Location: Alabama
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Thanks for the response, but our Data Security folks won't allow watchdogs like that to run on a web server without a lot of exception paperwork.
I am taking a look at httpcmd. This is a command line utility from MS that comes on the Server resource kit. This should allow me to hit a site without opening IE.
Thanks again,
Benje
I am taking a look at httpcmd. This is a command line utility from MS that comes on the Server resource kit. This should allow me to hit a site without opening IE.
Thanks again,
Benje
•
•
•
•
Originally Posted by Comatose
or simply build a program that monitors for the existance of that window (the asking window) and then closes it. Attached is the source code (in VB6) should you want it... and you can download the program itself (setup and all) from here:
http://www.aftermath.net/~coma/daniweb/asknot.zip
enjoy.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode