473,675 Members | 3,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change internet options through java script

1 New Member
am developing a project in vb.net. In that am using a following java script function to run an exe.

<script language="javas cript" type="text/javascript">
function opennotepad()
{
var sh=new ActiveXObject(" Wscript.Shell") ;
sh.Run("iexplor e.exe");
window.close();
}
</script>

it is working well but i have to set tools->internet options->security->custom level->initialize and script activex control not marked as safe to enable.

If we do the same process in IE 7 it is working well but it will give the following information in the yellow information bar at the top of the browser.

“Current security settings put your computer at risk click here to change your settings.”

wt shall i do for this?
is it possible to set this internet option through java script?
or is it possible run this exe without setting this internet option?

yaso
Aug 13 '07 #1
2 2043
kestrel
1,071 Recognized Expert Top Contributor
Im going to move this to the Javascript forum. Have a nice day!

--
Kestrel
Aug 13 '07 #2
acoder
16,027 Recognized Expert Moderator MVP
The settings are there for a reason: to prevent malicious programs from running without user intervention.

I don't think you can change the settings using Javascript. If you could, it would be an even bigger security hole than it currently is.
Aug 13 '07 #3

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

Similar topics

2
6585
by: Yve | last post by:
Hallo, this testweb works well in Mozilla and Netscape but not in Internet Explorer. http://www.netzwerkservice.com/test/frame/test_javascript_1007/ As I am not good at JavaScript I have got no idea where to look fot the bug.
5
2632
by: Edward Mitchell | last post by:
Is there a way that I can repair MS Internet Explorer? I seem to have broken it somewhere. I have been developing a .NET app. Three days ago I saw a message box in a web site that I visit saying "Syntax error; Line 14". I cleared that (hit button not to debug) and then the another message box popped up on a mouse over event that said a "Runtime error has occurred. Line 85: Object expected." I looked at the source and line 85 contained a...
4
2613
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an QA tested for a new year release. I don't think that going to prove practical, but there is no harm in trying :) and some serious family commitments. But it has to be done soon so this is stage one. Mike Winter provided an extensive list of...
2
1854
by: Nick Calladine | last post by:
Is this possible to ... I wish to get the value of a dropdown select but gets is indexable value (dont know if that is the right term) if that is possible (the position it assigned get assigned by the position on the list) this is so i can then pass it to the array called pictureimage to get the correct filename (similar to the picturetext part of this routine) and then the final line on the fuction is to change an original image with...
1
4190
by: Java Writer via .NET 247 | last post by:
Hey Mon!, This runs and gives me a 'iLen' of 4 but returns empty string. I am guessing this is the programmatic way to check Internet Explorer. {Tools}-{Internet Options)-(Settings...). Even if not I'd like to at least get something out of 'buffer' The CODE: class WinInet{ public static extern int InternetQueryOption (IntPtr hInternet, int dwOption, char buffer, ref int dwBufferLength );
8
3839
by: mouac01 | last post by:
I'm not sure if this is possible. I would like to have a PHP app on the Internet connect and write to a local database (Intranet). For example, users would go to a web site http://www.internet.com to run the app. The app requires an internet connection and is outside of the user's network. The app would have the option to either store data locally or on the Internet. I would like to give users the option to store data locally because...
2
3097
by: manishamca | last post by:
In dropdown i am retriving value from the backend. For eg: in the dropdown list the value selected are employee id..then i want to disply the emp name,job etc in the textbox. If i select a optino in dropdown menu then that id name etc shuld come in the textbox without refreshing the page... plz any help....... <%@ page import="java.util.*" %> <%@ page language="java" %> <%@ page import="java.sql.*" %> <HTML> <head>
5
2113
by: mukeshrasm | last post by:
Hi I am using AJAX to display the value in selection/list box. this code is working fine in Firefox Mozila browser but it is not working in Internet Explorer so please tell me how this will work in both' for html <html> <head> <script src="addlist.js" type="text/javascript"></script> </head>
0
8515
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8966
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8863
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4464
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2864
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2120
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1863
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.