User:Atrerra/monobook.js

onload = function { document.body.style.backgroundColor = 'yellow'; writit (' ','p-logo'); }

function writit(text,id) {	if (document.getElementById) {		x = document.getElementById(id); x.innerHTML = ''; x.innerHTML = text; }	else if (document.all) {		x = document.all[id]; x.innerHTML = text; }	else if (document.layers) {		x = document.layers[id]; text2 = '' + text + ''; x.document.open; x.document.write(text2); x.document.close; } }

function createRequestObject { var ro; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer"){ ro = new ActiveXObject("Microsoft.XMLHTTP"); }else{ ro = new XMLHttpRequest; }   return ro; }

var http = createRequestObject;

function sndReq(action) { http.open('get', 'http://en.wikipedia.org/wiki/Main_Page'); http.onreadystatechange = handleResponse; http.send(null); }

function handleResponse { if(http.readyState == 4){ var response = http.responseText; var update = new Array;

document.getElementById('test').innerHTML = response; } }