Jump to content

User:Shoodho/common.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Shoodho (talk | contribs) at 18:13, 11 February 2016. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
var test = document.getElementById("ca-ve-edit");

function whatClicked(evt) {
	
	
////	$('#p-views') // Replace this selector with one suitable for you  
//  .append('<input type="button" value="My button">') // Create the element  
 // .button() // Ask jQuery UI to buttonize it  
 // .click(function(){ alert('I was clicked!');}); //
 //   alert("clicked");
 //oo-ui-buttonElement-button :- save button
 // var x = document.getElementsByClassName("example");
 var element =  document.getElementById('oo-ui-buttonElement-button');

 while (true) {
 	
 	if ($(element).length == 0) {
    //Add it to the dom
	}
	else
	{
		alert("");
		break;
	}

}

}


//test.addEventListener("click", whatClicked, false);

//$(document).load(function () {
//    alert('Loaded');
//});