Hello,
[I]<!doctype html>
<html>
<head>
<title>My page</title>
<script type=”text/javascript” src=”script.js”>
</script>
</head>
<body>
<div id=”text_div”>
<h2>Table 1</h2>
<table id=”gametable” width=”400″ border=”1″ cellspacing=”1″ cellpadding=”5″>
<button type=”button” onclick=”table_2()”>table 2</button>
<script type=”text/javascript”>
table_1();
</script>
</table>
</div>
</body>
</html>
I am a beginner with Javascript, but it is very interesting to “play” with it. I have put a code of my page here and I hope there is all what needs to be. That shows a [I]table 1[I]table 2[I]table 1
My problem is that when I click the button, I get the table 2, but it is on a new page and it doesn’t go to the [I]text_div