View Single Post
Old Mar 10th, 2005, 11:29 AM   #1
Navid
Hobbyist Programmer
 
Navid's Avatar
 
Join Date: Feb 2005
Location: Canada
Posts: 187
Rep Power: 4 Navid is on a distinguished road
Send a message via MSN to Navid
Calling a function in a table

<HTML>

<HEAD>

<SCRIPT LANGUAGE="JAVASCRIPT">

function table()

{
document.write("example")
}

</SCRIPT>

</HEAD>

<BODY>

<TABLE BORDER=3>
<TR><TD>
"HERE"
</TD></TR>
</TABLE>

<FORM>
<INPUT TYPE="BUTTON" VALUE="FUNCTION IN TABLE" onClick="table()">

</BODY>

</HTML>


How would i call the function to work in the table instead of starting a new page? Like when i click on the button, i want it to write "example" in the table.

Can anyone help me?
Navid is offline   Reply With Quote