พอดีสร้าง app ขึ้นมา 1 หน้าแล้วจะทไให้สามารถคริกแล้วให้เปลียนไปยังหนเาที่กำหนดไว้ต้องทำยังไงครับ
พิมโค้ดมาประกอปไปด้วย html+js+css3
พิมโค้ดประมานนี้ครับ
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Angry Bear</title>
</head>
<body>
<canvas id="myCanvas" width="480" height="320" style="background:url(images/bg.png)"></canvas>
<script src="js/Box2dWeb-2.1.a.3.js"></script>
<script src="js/boxbox.js"></script>
<script>
    //Create game world
    var c = document.getElementById("myCanvas"); 
    var ctx = c.getContext('2d');
    var world = boxbox.createWorld(c , {
                debugDraw:false,    
                gravity: {x: 0, y: 30}, 
                scale:1,
                tickFrequency: 50, 
                collisionOutlines:false, 
        });
    //Create Entities
    var Item1 = world.createEntity({ 
           name: 'Item1', 
        type:'static', 
        shape: 'square',
        active: true, 
                x: 240,       
               y: 280,          
        image: 'images/Item1.png',
        imageStretchToFit: true,
        imageOffsetX:-120,
        imageOffsetY:-20, 
                height: 80, 
                width: 480, 
        });
</script>
</body >
</html>
พิมโค้ดประมานนี้ครับ แต่อยากให้เมือผู้เล่นกด Item1 จากหน้า index.html เมือคริก Item1 แล้วให้ส่งผูเล่นไปยัง page1.html ต้องทำยังไงครับ																															
						 
												
						
					
ถามเรื่องการเชื่อมโยงลิงค์ html app
พิมโค้ดมาประกอปไปด้วย html+js+css3
พิมโค้ดประมานนี้ครับ
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Angry Bear</title>
</head>
<body>
<canvas id="myCanvas" width="480" height="320" style="background:url(images/bg.png)"></canvas>
<script src="js/Box2dWeb-2.1.a.3.js"></script>
<script src="js/boxbox.js"></script>
<script>
//Create game world
var c = document.getElementById("myCanvas");
var ctx = c.getContext('2d');
var world = boxbox.createWorld(c , {
debugDraw:false,
gravity: {x: 0, y: 30},
scale:1,
tickFrequency: 50,
collisionOutlines:false,
});
//Create Entities
var Item1 = world.createEntity({
name: 'Item1',
type:'static',
shape: 'square',
active: true,
x: 240,
y: 280,
image: 'images/Item1.png',
imageStretchToFit: true,
imageOffsetX:-120,
imageOffsetY:-20,
height: 80,
width: 480,
});
</script>
</body >
</html>
พิมโค้ดประมานนี้ครับ แต่อยากให้เมือผู้เล่นกด Item1 จากหน้า index.html เมือคริก Item1 แล้วให้ส่งผูเล่นไปยัง page1.html ต้องทำยังไงครับ