0

<html>
<title>Self4You</title>
<body bgcolor="yellow">
<center>
<img width="250px" src=http://self4you.pt/assets/img/678.png></img>
<h1 style="font-family:verdana;">
Tire a sua Senha.
</h1>

<a id="ticket" href="com.fidelier.printfromweb://$intro$$bighw$    Self4You$intro$$small$            Sua Vez: $intro$$bighw$       >counter<  $intro$$intro$$intro$$intro$">

<input type="image" src="http://bsccongress.com/im6/white-circle-button-clip-art.png">

</a>


</center>
</body>
</html>

Is it possible to change the content of the tag "ticket"? I want to replace ">counter<" with a number everytime i click the image. i'll apreciate any help. thanks

Felix Kling
  • 795,719
  • 175
  • 1,089
  • 1,143
  • Yes it is possible. What specifically are you having problems with? There are multiple steps involved, each of which have been discussed extensively on Stack Overflow. – Felix Kling Oct 04 '16 at 16:48
  • I'm starting to learn javascript and i just don't have a clue on how to do it. – Carlos J. Oct 04 '16 at 16:53
  • Your HTML code is invalid. do you want to change the word insid `href`?? ` input... ` – Zakaria Acharki Oct 04 '16 at 16:56
  • Look at [how to bind an event handler](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) and [how to change the content of an element](http://stackoverflow.com/q/1358810/218196). I found both by searching for `javascript bind click event handler` and `javascript change element content` on Google btw. – Felix Kling Oct 04 '16 at 16:58
  • i want to change text inside the tag ..., not here – Carlos J. Oct 04 '16 at 16:59
  • That called attribute of tag... please try to correct your HTML code first. – Zakaria Acharki Oct 04 '16 at 17:01

0 Answers0