Last active
August 29, 2015 14:05
-
-
Save ugurerkan/ab48bec606e68456d040 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var container = document.getElementById('answer'); | |
for(var i = 1; i <= 5; i++) { | |
var a = document.createElement("a"); | |
a.innerHTML = "link" + i + " "; | |
var onClick = function () { | |
var i = this.innerHTML.substr(-2); | |
alert(i); | |
}; | |
a.addEventListener("click", onClick); | |
container.appendChild(a); | |
} | |
while(1==1) alert('Tşk'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
regex yapalım da sheqlimiz belli olsun
(OLMADI)
https://www.facebook.com/ugurerkan/posts/10152406078617632 şevket lobisi...............