Note Worst Way Of Doing This!
To tired to do it any other way tho...
code:
function OnEvent_Initialize(MessengerStart){
var _html = LoadXmlDoc('http://tinyurl.com/create.php?url=http://google.ca');
var _link_pos = _html.indexOf('<blockquote><b>http://tinyurl.com/');
_html = _html.substr(_link_pos, _html.length)
_link_pos = _html.indexOf('http://tinyurl.com/');
_html = _html.substr(_link_pos, _html.length)
_link_pos = _html.indexOf('</b>');
_html = _html.substr(0, _link_pos)
Debug.Trace(_html);
}
function LoadXmlDoc(sUrl){
var xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
xmlhttp.open('GET', sUrl, false);
xmlhttp.send();
return xmlhttp.responseText;
}