<script>
function testme(testvar) {
if (testvar=='1') {
alert('testvar= 1');
document.open() ;
document.write( 'This is just some text<br /><br />");
document.write( '<a href="javascrip t:testme(\'2\') ;" >Next >> </a>');
document.close( );
}
else if (testvar=='2') {
alert('testvar= 2');
}
}
</script>
<a href="javascrip t:testme('1');" >Next >> </a>
It seems that this should work, but alas, it doesn't. What I am emulating
in this example is a case where you start off with a hyperlink that calls
TESTME and produces another hyperlink. When you click on the hyperlink, it
errors out and produces "object expected" in IE and "Error: callHelp is not
defined" in NS. Why is it saying callHelp is not defined and how do I fix
this?
Thanks.
function testme(testvar) {
if (testvar=='1') {
alert('testvar= 1');
document.open() ;
document.write( 'This is just some text<br /><br />");
document.write( '<a href="javascrip t:testme(\'2\') ;" >Next >> </a>');
document.close( );
}
else if (testvar=='2') {
alert('testvar= 2');
}
}
</script>
<a href="javascrip t:testme('1');" >Next >> </a>
It seems that this should work, but alas, it doesn't. What I am emulating
in this example is a case where you start off with a hyperlink that calls
TESTME and produces another hyperlink. When you click on the hyperlink, it
errors out and produces "object expected" in IE and "Error: callHelp is not
defined" in NS. Why is it saying callHelp is not defined and how do I fix
this?
Thanks.
Comment