Link to home
Start Free TrialLog in
Avatar of Slimshaneey
SlimshaneeyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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.
Avatar of Slimshaneey
Slimshaneey
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

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...
Avatar of Barthax
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.
Java permissions are medium, I tried Low and still no difference, and UNC paths are checked.
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>
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.
probably you have some <base href=.....

remove or change it
Nope, no base href....
ASKER CERTIFIED SOLUTION
Avatar of Dennis Maeder
Dennis Maeder
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial