<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>JavaScript on Mishal Abdullah</title><link>https://mishalabdullah.com/tags/javascript/</link><description>Recent content in JavaScript on Mishal Abdullah</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Wed, 27 Sep 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://mishalabdullah.com/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>How To Get Data From URL In NEXTJS 13</title><link>https://mishalabdullah.com/blogs/getting-data-from-links-in-nextjs13/</link><pubDate>Wed, 27 Sep 2023 00:00:00 +0000</pubDate><guid>https://mishalabdullah.com/blogs/getting-data-from-links-in-nextjs13/</guid><description>In this we are going to learn how to get data from the url of a NEXTjs application. In this blogs we will be taking a look at the latest version of nextjs which is version 13, it would be different for version 12 and so on. I am assuming you got npm installed or something similar to that for managing your packages.
Creating a NEXTjs Application In NEXTjs 13 for creating an application just run.</description></item><item><title>How To Find HTML Elements Using JavaScript</title><link>https://mishalabdullah.com/jspart3/</link><pubDate>Fri, 04 Nov 2022 00:00:00 +0000</pubDate><guid>https://mishalabdullah.com/jspart3/</guid><description>There are three ways of finding HTML elements
document.getElementById() document.getElementsByTagName() document.getElementsByClassName() Element By ID:- The document.getElementById() method is the most common way to find HTML elements. You can assign a Tag any id you want and pass the the id as a parameter to the document.getElementByid() example
&amp;lt;!DOCTYPE html&amp;gt; &amp;lt;html&amp;gt; &amp;lt;head&amp;gt; &amp;lt;/head&amp;gt; &amp;lt;body&amp;gt; &amp;lt;h1 id=&amp;quot;intro&amp;quot;&amp;gt;Hello World&amp;lt;/h1&amp;gt; &amp;lt;/body&amp;gt; &amp;lt;script&amp;gt; var value = document.getElementById(&amp;quot;intro&amp;quot;); value.style.color = &amp;quot;red&amp;quot;; &amp;lt;/script&amp;gt; &amp;lt;/html&amp;gt; Output !</description></item></channel></rss>