johncalvin
Programmer
i've been trying to make my life easy by working out if i can have a link in my html be in relation to a variabkle set in javascript.
In my script section i have
function nextch()
{
chapter=1;
forward=chapter+1;
first="ch_";
last=".htm";
destination=first+forward+last;
parent.mainFrame.location.href(destination);
}
and in the body of the html file i have this <a> tag wrapped around an image
<a href="#" onClick="nextch()" onmouseover="image3.src='onmouseout="image3.src='
If anyone can see glaringly obvious problems with this any help would be great.
In my script section i have
function nextch()
{
chapter=1;
forward=chapter+1;
first="ch_";
last=".htm";
destination=first+forward+last;
parent.mainFrame.location.href(destination);
}
and in the body of the html file i have this <a> tag wrapped around an image
<a href="#" onClick="nextch()" onmouseover="image3.src='onmouseout="image3.src='
If anyone can see glaringly obvious problems with this any help would be great.