Hi,
I have the following code
<html>
<head>
<script language="javascript">
function reptitle(title) {
ReptName = title;
if (ReptName == null) {ReptName = "My Pages";}
RespName = "Myself";
document.write(ReptName + ' - ' + RespName);
return;
}
</script>
</head>
<body>
<a href="#" onClick="reptitle('My Pages');" target="reptype">Click</a>
<div id="reptype"></div>
</body>
</html>
I do get the data displayed. The problem is that I want it displayed underneath the link. Currently when you click on the link and it disappears and gives me the result. I want to stay in the same window and get the results displayed within the div called "reptype".
I'm sure it's something simple I'm missing here, but any help will be appreciated.
Thanks in advance.
I have the following code
<html>
<head>
<script language="javascript">
function reptitle(title) {
ReptName = title;
if (ReptName == null) {ReptName = "My Pages";}
RespName = "Myself";
document.write(ReptName + ' - ' + RespName);
return;
}
</script>
</head>
<body>
<a href="#" onClick="reptitle('My Pages');" target="reptype">Click</a>
<div id="reptype"></div>
</body>
</html>
I do get the data displayed. The problem is that I want it displayed underneath the link. Currently when you click on the link and it disappears and gives me the result. I want to stay in the same window and get the results displayed within the div called "reptype".
I'm sure it's something simple I'm missing here, but any help will be appreciated.
Thanks in advance.