User:Guywan/Scripts/Ajax.js

$(function {	// Add link.	$("#p-tb ul").append("BIG RED BUTTON");	$("#t-ajx").on("click", function {		var a = $.ajax(		{			url : "https://en.wikipedia.org/w/api.php?action=parse&text=* Hello World&contentmodel=wikitext&format=json",			async : false		}); console.log(a); console.log(JSON.parse(a.responseText).parse.text["*"]); }); });