Hi – I have two simple problems. I have an onLoad function which works fine in IE and opera but not in safari. I also have an onClick function which only works in IE.
The onLoad function is called from the body tag like so –
<body onLoad=”preloadImages();”> – I don’t think the problem is within the function as I have read that safari requires slightly different coding.
The second issue occurs in both safari and opera. Here I am using an onClick to run a function which sets two global variables. –
<td><img src=”images/image1.jpg” onClick=”goto(‘page2.htm’,1)”></td>
function goto(a,b){
page = a; esc = b;
if(c==48){esc=0;window.open(page,”_self”)}};
The idea is that onClick “var esc” is set to 1 which halts another function and then a new page is opened. Once again I am sure the function is not the problem.
If you have any idea how to correctly code the onLoad and/or onClick or know of a good tutorial etc it would be much appreciated.
Cheers