kannuki
12-31-2005, 10:06 AM
This might be a stupid question, but...
If I have a page split into two frames, how might I rewrite the text in one frame by clicking a link on the other? It looks like this:
<head>
var Text = "I am text!"
var Text2 = "I am some different text!"
</head>
<body>
<a href = "#" onClick = "Top.OtherFrame.document.write(Text);">Link 1</a>
<a href = "#" onClick = "Top.OtherFrame.document.write(Text2);">Link 2</a>
</body>
The problem, of course, is that when either link is clinked, it adds text to the text that's already there. I only want the contents of one variable to be visible.
Please help me! It would be much appreciated.
If I have a page split into two frames, how might I rewrite the text in one frame by clicking a link on the other? It looks like this:
<head>
var Text = "I am text!"
var Text2 = "I am some different text!"
</head>
<body>
<a href = "#" onClick = "Top.OtherFrame.document.write(Text);">Link 1</a>
<a href = "#" onClick = "Top.OtherFrame.document.write(Text2);">Link 2</a>
</body>
The problem, of course, is that when either link is clinked, it adds text to the text that's already there. I only want the contents of one variable to be visible.
Please help me! It would be much appreciated.