User:Shoodho/common.js: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
function editlinkcliked(evt) { |
function editlinkcliked(evt) { |
||
alert("Clicked"); |
|||
while(true) |
while(true) |
||
{ |
{ |
Revision as of 19:05, 11 February 2016
var editlink = document.getElementById("ca-ve-edit");
function editlinkcliked(evt) {
alert("Clicked");
while(true)
{
if(document.getElementsByClassName('oo-ui-buttonElement-button')){
document.getElementsByClassName('oo-ui-buttonElement-button').style.color="red";
alert("Element exists");
break;
} else {
alert("Element does not exist");
}
}
}
editlink.addEventListener("click", editlinkcliked, false);
//$(document).load(function () {
// alert('Loaded');
//});