0
<a href=/01.html>BUTTON</a>

I have one button and it's linked 01.html now.

I want to link another page(02.html, 03.html) in order to BUTTON. is it possible?

wcodavid
  • 127
  • 1
  • 10
  • Not sure if I understand. You want all links on the the same button? Or separate buttons? – h4ck3r Jun 15 '13 at 09:43
  • links on the same button. – wcodavid Jun 15 '13 at 09:44
  • Do you want to change the href of this button on click on another button? – Nagarjun Jun 15 '13 at 09:44
  • It's only one button.first click = 01.html, second click = 02.html – wcodavid Jun 15 '13 at 09:47
  • Well you can put a button on each page or do you want an option were they can skip button 1 and go straight to button 2? – h4ck3r Jun 15 '13 at 09:51
  • What do you mean "in order to button"? that is really lousy english... What is the purpose of having many links in the same button? do you want to open several pages with one click? Now I have seen you second comment, but I'm not sure why would someone want something like that... anyway, Koki's answer does that – Joum Jun 15 '13 at 10:14

1 Answers1

3

Jquery solution, and working Demo

var countClick= 0;
(function () {
 $('#link').click(function () {
 countClick++;
 if (countClick == 1) {
  window.open("http://google.com", '_blank');
 }
 if (countClick == 2) {
  window.open("http://stackoverflow.com/", '_blank');
 }
 if (countClick == 3) {
 window.open("http://yahoo.com/", '_blank');
 }
});
})();