Alexa Website Rank Checker Tool
Alexa Website Rank Checker Tool creates a simple webpage that allows users to check the Alexa rank of a website by entering its URL into a text input and clicking a "Check Rank" button. The rank checking is done by sending a GET request to the Alexa website and parsing the HTML response to extract the rank information.
When the user clicks the "Check Rank" button, the checkRank() function is called, which retrieves the URL input from the text input, creates a new XMLHttpRequest object, and sends a GET request to the Alexa website with the URL as a parameter. Once the response is received, the onload function parses the HTML response using DOMParser and extracts the global rank information using the querySelector() method. Finally, the rank information is displayed on the page using the textContent property of a p element with an id of "rank-output".
আলেক্সা ওয়েবসাইট র্যাঙ্ক চেকার টুল একটি সাধারণ ওয়েবপেজ তৈরি করে যা ব্যবহারকারীদের একটি ওয়েবসাইটের URL টি একটি টেক্সট ইনপুটে প্রবেশ করে এবং একটি "চেক র্যাঙ্ক" বোতামে ক্লিক করে অ্যালেক্সা র্যাঙ্ক পরীক্ষা করতে দেয়। অ্যালেক্সা ওয়েবসাইটে একটি GET অনুরোধ পাঠিয়ে এবং র্যাঙ্কের তথ্য বের করার জন্য HTML প্রতিক্রিয়া পার্স করে র্যাঙ্ক পরীক্ষা করা হয়।
ব্যবহারকারী যখন "চেক র্যাঙ্ক" বোতামে ক্লিক করেন, তখনcheckRank() ফাংশন বলা হয়, যা টেক্সট ইনপুট থেকে URL ইনপুট পুনরুদ্ধার করে, একটি নতুন তৈরি করেXMLHttp অনুরোধ অবজেক্ট, এবং প্যারামিটার হিসাবে URL সহ আলেক্সা ওয়েবসাইটে একটি GET অনুরোধ পাঠায়। সাড়া পাওয়া গেলে, দভার ফাংশন ব্যবহার করে HTML প্রতিক্রিয়া পার্স করে DOMParser এবং ব্যবহার করে গ্লোবাল র্যাঙ্কের তথ্য বের করে প্রশ্ন নির্বাচক() পদ্ধতি অবশেষে, র্যাঙ্ক তথ্য ব্যবহার করে পৃষ্ঠায় প্রদর্শিত হয় পাঠ্য বিষয়বস্তু a এর সম্পত্তি পি একটি সঙ্গে উপাদান আইডি "র্যাঙ্ক-আউটপুট" এর।
Alexa Website Rank Checker Tool
Enter the website URL below:
No comments:
Post a Comment