C
ciaran
Can anyone tell me what it wrong with this code, please?
<script language="JavaScript">
function myFunction2(){
document.write ('Link <a href="javascript:myFunction1()">A</a>')}
function myFunction1(){
document.write ('Link <a href="javascript:myFunction2()">B</a>')}
</script>
<body>
Start in
<a href="javascript:myFunction2()">here</a>
</body>
I click on "here" and I see the page with link "A".
I click on "A" and, instead of seeing the page with link B as expected,
I get "Error in page".
Thanks for any ideas.
<script language="JavaScript">
function myFunction2(){
document.write ('Link <a href="javascript:myFunction1()">A</a>')}
function myFunction1(){
document.write ('Link <a href="javascript:myFunction2()">B</a>')}
</script>
<body>
Start in
<a href="javascript:myFunction2()">here</a>
</body>
I click on "here" and I see the page with link "A".
I click on "A" and, instead of seeing the page with link B as expected,
I get "Error in page".
Thanks for any ideas.