jasonrg
03-20-2003, 06:20 PM
I've got a bit of a question and was hoping you could help. I'm using a javascript function to build an html page using document.write() When I try to include a call to another function, it doesn't work. Any suggestion? Thanks!
JasonRG
<html>
<head>
<script language="JavaScript"
function example()
{
this.document.write('<a href="javascript:showMessage()">Click here</a>')
}
function showMessage()
{
alert("Here")
}
</script>
</head>
<body onload="example()">
</body>
</html>
JasonRG
<html>
<head>
<script language="JavaScript"
function example()
{
this.document.write('<a href="javascript:showMessage()">Click here</a>')
}
function showMessage()
{
alert("Here")
}
</script>
</head>
<body onload="example()">
</body>
</html>