Problem linking on a CD Rom html page

Hi there. Im having a problem with IE on a html page that I have created for a CD rom that demos some movies content. Everything works well on the page except for a small piece of javascript I have acting within the link it self.
It works fine in Firefox but in IE I get a permission Denied Error
The code is like this:
<a href="javascript: document.location.href='index.html';">Home</a>

What can I do to get it running? It works fine in testing on the file system on my PC but when I burn the cd to test this problem appears.
LVL 11
SlimshaneeyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SlimshaneeyAuthor Commented:
Oh, and I did try linking to just the index.html like a normal link, but nothing happens in IE for some reason. Something about being on the CD breaks it, so I tried JS and the result is the above error...
0
BarthaxCommented:
Check in Tools->Internet Options, Security tab what security level IE is working at.  Additionally, under the Local Intranet zone, click Sites & check the UNC paths option.
0
SlimshaneeyAuthor Commented:
Java permissions are medium, I tried Low and still no difference, and UNC paths are checked.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

devicCommented:
if you have links like this:
<a href="javascript: document.location.href='index.html';">Home</a>

then you don't need javascript;
<a href="index.html">Home</a>
0
SlimshaneeyAuthor Commented:
I did try that, but for some reason the direct link doesnt work from a cd due to the way the browser interprets the relative links from a cd, hence having to use the javascript.
0
devicCommented:
probably you have some <base href=.....

remove or change it
0
SlimshaneeyAuthor Commented:
Nope, no base href....
0
Dennis MaederCommented:

I have no problem with a CD and
a local file resource with the form
file:///F:/folder/index.html
which opens in my default browser FF unproblematically.

However if I paste this URL in IE, then
IE thinks - wot? a file? apply file associations - open it in default bowser -> FF

There's a good chance that this is happening on your system with FF refusing to be opened by IE

I work around this in test mode by renaming or copying the file to index.htmie and then associating the .htmie extension with IE...

Then all I get is a warning from IE about showing active content - which you must then be allowed.

D
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.