Forums → Programming Forum → Website links
- 2 Replies
I've been working on a webpage and I've being trying to get a button to link to another website.
var button = document.getElementById("yellowButton"
yellowButton.addEventListener('click', gotoGamesPage, false);
window.location = "http://www.explosionshurt.webs.com/games"
Doing it this way seems a bit primitive, because I'll have to do the above thing for every single button in the website. Is there any other, easier way to link a button to a different page?
I think people, don't reply on this topic, cuz they don't understand what u mean. BTW, I don't understand it?
Felt primitive since you could do the same thing with a little html code?
<a href="http://www.explosionshurt.webs.com/games" class="yellowButton">Games</a>
You must be logged in to post a reply!
We strive to deliver the best gaming experiences on the internet and on your mobile phone. Play thousands of free online games, get access to free mmorpg games, online rpg games, fun online flash games, and more.
We offer free flash games in many different genres: online shooting games, online puzzle games, online war games, free online car games, free online hidden object games and dozens more.
This is the best place on the web to play online games for free! No matter what game style you prefer, we've got it here.
Want to advertise on Armor Games? Send us a note!
Gaming websites, passionate bloggers, and quirky streamers are welcome to share or review our games. If you need game keys, art, trailers, screenshots or more check out our press kit website.
Game developer? Visit developers.armorgames.com to request AG developer status, find documentation on our APIs, and get access to our development environment. Let's make sweet, sweet games together.
Looking for a publishing partner that can help your app rocket to success? Contact the mobile team to learn more about how we can help!