jubalbarca
Programmer
Basically I have the following problem. I am writing a small frames-based Javascript game...
I have two frames in my frameset, one for menu functions and alerts which changes, and one 'bar' which stores all the game data and functions. What I need to be able to do is call a function from the menu that is in the bar, and the have that function change the (href) location of the menu.
This;
Called as follows;
Doesn't work, I get a small flicker on the screen and nohting happens.
Many thanks,
Jubal
I have two frames in my frameset, one for menu functions and alerts which changes, and one 'bar' which stores all the game data and functions. What I need to be able to do is call a function from the menu that is in the bar, and the have that function change the (href) location of the menu.
This;
Code:
function cw () {
parent.menu.location.href="tb.html";
}
Called as follows;
Code:
<form> <input type="Submit" onclick="parent.bar.cw()" value="test"> </form>
Doesn't work, I get a small flicker on the screen and nohting happens.
Many thanks,
Jubal