473,395 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Is it possible to make a script that closes the browser?

Death Slaught
1,137 1GB
Is it possible to make a script that closes the internet browser when the user clicks,mouseovers,or loads the page?

Thanks, Death Slaught
Aug 13 '07 #1
10 1125
pbmods
5,821 Expert 4TB
Heya, Death.

Short answer: No. Well, maybe in Windows you can try for some kind of buffer overflow vulnerability that you could then use to execute arbitrary commands and either erase the User's hard drive or sometimes close the browser, though that would not make your script very platform-independent, now would it?

Long answer: The most damage you can do is to close the window.

Expand|Select|Wrap|Line Numbers
  1. window.close();
  2.  
Aug 13 '07 #2
Death Slaught
1,137 1GB
Heya, Death.

Short answer: No. Well, maybe in Windows you can try for some kind of buffer overflow vulnerability that you could then use to execute arbitrary commands and either erase the User's hard drive or sometimes close the browser, though that would not make your script very platform-independent, now would it?

Long answer: The most damage you can do is to close the window.

Expand|Select|Wrap|Line Numbers
  1. window.close();
  2.  
thanks mods that should be all i need but ill probly have to pm you in a few or post again i cant get this stupid script to work but ima try a little longer before i ask for help on it.
Aug 13 '07 #3
acoder
16,027 Expert Mod 8TB
Is it possible to make a script that closes the internet browser when the user clicks,mouseovers,or loads the page?

Thanks, Death Slaught
Just asking, but why would you want to close the browser when someone clicks somewhere on the page, or just moves the mouse or, even worse, just loads the page?!
Aug 14 '07 #4
Death Slaught
1,137 1GB
Just asking, but why would you want to close the browser when someone clicks somewhere on the page, or just moves the mouse or, even worse, just loads the page?!
simple if there was a glitch or they some how managed to get on a page thats not supposed to be accessed execpt by a certain person(me) it would ensure that the pages content was safe.
Aug 14 '07 #5
epots9
1,351 Expert 1GB
simple if there was a glitch or they some how managed to get on a page thats not supposed to be accessed execpt by a certain person(me) it would ensure that the pages content was safe.
i don't think that will work cuz is u try to close the parent window, ie will ask u if u want this script to continue, if u say no the page will load.
Aug 14 '07 #6
Death Slaught
1,137 1GB
i don't think that will work cuz is u try to close the parent window, ie will ask u if u want this script to continue, if u say no the page will load.
yea i noticed that but thanks anyways.
Aug 14 '07 #7
epots9
1,351 Expert 1GB
your best bet would be to use cookies
Aug 14 '07 #8
Death Slaught
1,137 1GB
your best bet would be to use cookies
ill look into it i havent even finished the javascript tutortial on w3schools yet so i dont know much well anything about the language im trying to do a few scripts with functions and if else statements for practice so i havent got to the cookie chapter but ill keep it in mind thanks.
Aug 14 '07 #9
epots9
1,351 Expert 1GB
ill look into it i havent even finished the javascript tutortial on w3schools yet so i dont know much well anything about the language im trying to do a few scripts with functions and if else statements for practice so i havent got to the cookie chapter but ill keep it in mind thanks.
oh ok, once u get there i think u'll want to use them too. Always remember to take your time when your learning something new ;)
Aug 14 '07 #10
acoder
16,027 Expert Mod 8TB
simple if there was a glitch or they some how managed to get on a page thats not supposed to be accessed execpt by a certain person(me) it would ensure that the pages content was safe.
It wouldn't ensure that the pages' contents were safe.

The only way to ensure that is not to allow them to get onto the page in the first place and that's only possible using a server-side language.
Aug 15 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Rafael Chemtob | last post by:
Hi, I'm using session cookies on my web app and it looks like the session is not being killed when the user closes the browser. We use a Global.asa file on our app. Do we have to explicitly...
2
by: Simon Fletcher | last post by:
Hello there, I need a "Close Window" script ( onLoad.Close.Window() ), however i need the script so it don't come up with this annoying window: "This window is trying to close" window. Is...
5
by: news.microsoft.com | last post by:
Hi everyone, I need some help (may be in the form of some sample code) for the subject question. I have an ASP.NET/C# application. I need to do quite a few tasks when the session ends. I...
11
by: rgintexas | last post by:
i'm trying to get server side vbscript to execute in firefox: </script> <script type="text/VBScript" src="VBFile.vbs"> </script> is there any way i can use javascript to call the vbs file, or...
4
by: Fred Lazy | last post by:
Is is possible to retrieve the name of an .js file from within the .js file itself: For example, if the file is named "bla.js" and it is imported into an html document: <script...
3
by: duzhidian | last post by:
Hello All, I am using Linux, php and mysql. When I run my script, it will take a very long time. So when users close their browsers, my scripts stop either. What I want to do is let the...
11
by: justsome_newbie | last post by:
I'm wanting to create a simple program for my computer at home. I would like to keep my wireless network disabled and then only enable it when a certain program starts (internet explorer or...
4
by: Michael | last post by:
I have both PHP and Apache installed on my Windows machine. When I open up a PHP script file in my browser, the output goes to a DOS Window (and the window closes immediately upon completion of...
1
by: soni2926 | last post by:
hi, i'm working on a site, which has a session created after a user logins, each page checks to make sure the session is there onload otherwise redirects to the login page. now the clients are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.