From 47c2c171890dffc668c27a663b680650a468ce55 Mon Sep 17 00:00:00 2001 From: yamanq Date: Sat, 30 Sep 2017 18:30:11 -0400 Subject: [PATCH] add function to get website --- gyrio/index.html | 31 +++++++++++++++++-------------- gyrio/index.js | 6 ++++++ 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/gyrio/index.html b/gyrio/index.html index d6939eb..4d18dfb 100644 --- a/gyrio/index.html +++ b/gyrio/index.html @@ -1,15 +1,18 @@ - - - - Foxnet - - - - - - - - - - \ No newline at end of file + + + + + Foxnet + + + + + + + + + + + + diff --git a/gyrio/index.js b/gyrio/index.js index e69de29..773110c 100644 --- a/gyrio/index.js +++ b/gyrio/index.js @@ -0,0 +1,6 @@ +function getWebsite(geturl) { + xmlhttp=new XMLHttpRequest(); + xmlhttp.open("GET", geturl, false); + xmlhttp.send(); + var data = xmlhttp.responseText; +}