View Full Version : General JavaScript question

08-22-2005, 06:10 AM
I am new to website development and know mostly html, but am interested in using JavaScript. I am curious why while using Internet Explorer when I add javascript to my html document, and then open it, it always prompts me with a security message talking about ActiveX Content. I am not wanting ActiveX Content, just pure JavaScript (ex a scrolling news bar). When I visit sites using JavaScript, for example DynamicDrive or SportsIllustrated.com, it doesnt prompt me with the Security Message... what am I doing wrong? All help is greatly appreciated. Thank you.

08-22-2005, 08:31 AM
This only happens when you run the script offline - upload it and you should be fine.


08-22-2005, 08:37 AM
That only happens locally as a security measure. As far as IE is concerned, javascript is ActiveX. Click on the bar and click on allow and click on yes. Once your page is live, this will not happen. You can also give your page 'the mark of the web'. That way it will not display the security bar. Put this right after your <html> tag like so:

<!-- saved from url=(0014)about:internet -->
<!-- this and above comment should be removed for live, non-demo use -->
<head>But, navigating away from the page to another local page, or including another local page on it via a frame or an iframe can be problematical if said page does not also have 'the mark of the web' on it.