Forum Moderators: open

Message Too Old, No Replies

href problem on Mac browser

href mac problem

         

jpwrunyan

4:35 am on Sep 11, 2004 (gmt 0)



Hello, this may be a stupid question but I have been looking everywhere for help and can't find it so I will ask here.

I can't get the href property to work under any circumstance with a Mac browser. I am using java script to make the URL string which contains a CGI script for perl.. but I don't think that makes any difference, not even the below example will work on my mac machine. It seems there are compatibility issues with Macs, but is there a way to get this code below to work by changing the syntax? I am using Internet Explorer 5.1.7 on Mac OS 9.11

any help at getting some sort of javascript to run the equivalent of:
window.document.location.href = myJavaVar;
would be great...

here is an example of the code that I have which works on windows pc but not on mac:

function aaa {
window.document.location.href = "http://#*$!.or.jp/";
}

dcrombie

5:20 pm on Sep 12, 2004 (gmt 0)



A better syntax to use is:

self.location.href = 'http://www.example.com/index.html';