/    Sign up×
Community /Pin to ProfileBookmark

Browsers Protection Message

Hi.. I’m a very new member of this forum and only a beginner on scripting. Please forgive me if this subject has already been answered.

When I surf on the internet i visit a lot of web pages which includes javascript codes and my web browser (IE) sometimes warns me (“[COLOR=DarkSlateBlue]To help your security,Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options [/COLOR]“) some times without any warning lets the page to run javascript. When i click to see the options and [COLOR=Sienna]What is the risk?[/COLOR], i see such a message [COLOR=DarkOrange]“What is active content and why does Internet Explorer restrict it?
Active content is content that relies on either ActiveX controls or computer code called a script to work properly. Examples include stock tickers, video, and animated content on Web pages.

These programs can, however, malfunction or give you content you don’t want. In some cases, these programs can be used to collect information from your computer in ways you might not approve of, possibly damage data on your computer, install software on your computer without your consent, or allow someone else to control your computer remotely. Given these risks, you should only install these programs if you completely trust the publisher.

If a Web page you visit tries to display active content, you will see the message below (click the message for more information).”[/COLOR]

Ofcourse this message scares me and i don’t let the page run mostly..

I’m designing a web page and i use some java script codes and when i prewiev the pages to test i get same [COLOR=Navy]protection message [/COLOR]… I would like to know how to solve this problem. How come some pages scripts are allowed but some of them are not?? What do i have to do to avoid my script codes to be bloked by clients browser?
Thank you very much

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@cootheadJul 01.2006 — Hi there ayhan,

and a warm welcome to these forums. ?
[color=navy]What do I have to do to avoid my script codes being bloked by clients browser? [/color][/quote]

This will not be a problem once you have uploaded them to your server.

Locally, to stop the protection message add this comment directly below your DOCTYPE as in this example...
[color=navy]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">[color=purple]
<!-- saved from url=(0017)http://mysite.com -->[/color]
[/color]


further reading:-

http://msdn.microsoft.com/workshop/author/dhtml/overview/motw.asp

[i]coothead[/i]
Copy linkTweet thisAlerts:
@ayhanauthorJul 01.2006 — Wow it Works.. Thanks a lot coothead!
Copy linkTweet thisAlerts:
@cootheadJul 01.2006 — No problem, you're welcome. ?
Copy linkTweet thisAlerts:
@xoxoPAMxoxoJul 01.2006 — Where do you place this code? between <head></head> tags? The very beginning of my page have the meta tags, this code goes under or above them?
Copy linkTweet thisAlerts:
@cootheadJul 01.2006 — Hi there xoxoPAMxoxo,
[color=navy]Where do you place this code?[/color][/quote]
Does this clarify it for you...
[color=navy]&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;[color=purple]
&lt;!-- saved from url=(0017)http://mysite.com --&gt;[/color]
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;

&lt;style type="text/css"&gt;
&lt;!--

--&gt;
&lt;/style&gt;

&lt;script type="text/javascript"&gt;
&lt;!--

//--&gt;
&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;

&lt;div&gt;&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;[/color]

[i]coothead[/i]
Copy linkTweet thisAlerts:
@xoxoPAMxoxoJul 01.2006 — Oh thank you :p

Do I change the two below with my own url?

http://www.w3.org/TR/html4/strict.dtd

http://mysite.com



?
Copy linkTweet thisAlerts:
@cootheadJul 01.2006 — Hi there xoxoPAMxoxo

No you do not have to change anything. ?

Also note that...

http://www.w3.org/TR/html4/strict.dtd

...is a part of the DOCTYPE and is not to be removed.

I suggest that you read the information here...

http://msdn.microsoft.com/workshop/author/dhtml/overview/motw.asp

[i]coothead[/i]
Copy linkTweet thisAlerts:
@xoxoPAMxoxoJul 01.2006 — oh thank you very much ?
×

Success!

Help @ayhan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...