Day 26: Of web development course Practicing JavaScript DOM Events & Form Handling ⚡ Today I built a small interactive form to practice key DOM manipulation and event handling concepts in JavaScript. What I implemented: Used getElementById to select form elements Prevented default form submission using e.preventDefault() Added inline styling dynamically with onfocus and onblur events (background color change on input fields) Used onchange event on a dropdown to detect and respond to user selection changes Displayed real-time feedback using alert() What I learned: How to respond to different types of user interactions (focus, blur, change, submit) That DOM practice is best done through small, working examples like this The importance of preventDefault() when handling form submissions manually Next step: Fixing the missing username field and expanding to dynamic content updates instead of just alerts. Small steps, solid progress. 🧱💻 #webdevelopment #javascript #DOM #formevents #codingjourney #day26
Sheemaz Rehan’s Post
More Relevant Posts
-
Day 2 of my Web Development Journey 💻 Today I learned some interesting concepts in JavaScript: dot notation, bracket notation, and optional chaining. We usually access object properties using dot notation like this: object.property But what if the property name starts with a number or contains special characters? In that case, dot notation doesn’t work. That’s where bracket notation comes in: object['property name'] It also allows us to use variables inside the brackets, which makes it more flexible. 😀 Another concept I explored today is optional chaining (?.). When trying to access a property from a nested object, if something doesn’t exist, the program can throw an error. Optional chaining helps avoid that by returning undefined instead of breaking the program. Learning step by step and enjoying the process 🚀 #WebDevelopment #JavaScript #LearningInPublic #Day2
To view or add a comment, sign in
-
-
Just learned about the DOM (Document Object Model) in JavaScript! The DOM is what allows JavaScript to interact with HTML and CSS, making web pages dynamic and interactive. From changing text, styles, images, to handling button clicks — DOM manipulation is the backbone of modern web development. Example: ✔ Updating content instantly ✔ Creating new elements dynamically ✔ Responding to user actions Understanding DOM is a big step toward becoming a better frontend developer. Edure #JavaScript #WebDevelopment #Frontend #DOM #CodingJourney #LearnToCode
To view or add a comment, sign in
-
🚀 Day 5 of My Frontend Development Journey Today, I explored something powerful behind modern websites… 👉 DOM Manipulation (Document Object Model) 💡 What I learned: How JavaScript connects with HTML elements Selecting elements using getElementById, querySelector Changing content dynamically (innerText, innerHTML) Handling user actions using events (click, input) 🛠️ Mini Project: Built a simple interactive feature where: Button click changes text User input updates content instantly #FrontendDevelopment #JavaScript #DOM #WebDevelopment #Day5 #LearningInPublic #CodingJourney
To view or add a comment, sign in
-
-
🚀 40% of Websites Have This Common JavaScript Issue Imagine you're at a coffee shop, and you order a latte but get a cappuccino instead. That's basically what's happening when JavaScript variables get mixed up. In JavaScript, scope refers to where a variable is defined and accessible. A common issue is using `var` instead of `let` or `const`. Here's a quick example: ```javascript for , var i = 0; i 5; i++, setTimeout, , , = console.log, i, ; , 1000, ; ``` This code logs 5 to the console five times because `var` has a function scope, not a block scope. ✅ To fix this, use `let` or `const`: ```javascript for , let i = 0; i 5; i++, setTimeout, , , = console.log, i, ; , 1000, ; ``` This logs numbers 0 to 4 as expected. Did this help? Save it for later. Check if your website's JavaScript has this issue and fix it to improve performance. #JavaScript #WebDevelopment #CodingTips #TechEducation #WebDesign #FrontendDevelopment #JavaScriptSimplified #ScopeIssues #VarLetConst #CodingBestPractices #WebPerformance #DeveloperTips #CodeQuality #WebDevelopmentTips #LearnToCode
To view or add a comment, sign in
-
🚀 Just built a simple yet powerful project! 🎯 Live Digital Timer / Clock using JavaScript ⏰ This project displays real-time updates of time directly in the browser and helped me strengthen my understanding of core web development concepts. 🔧 Tech Stack: HTML CSS JavaScript 💡 Key Learnings: Using setInterval() for real-time updates DOM manipulation (getElementById) Dynamic styling using JavaScript Handling timing functions effectively ⚡ Challenges faced: Updating time continuously Ensuring proper script execution after DOM loads ✅ Successfully implemented a working live timer! 📈 Next Improvements: Add Date along with time 📅 Dark/Light mode 🌙 Dynamic background changes 🎨 I’m continuously learning and building. Feedback and suggestions are always welcome 🙌 #WebDevelopment #JavaScript #Frontend #CodingJourney #StudentDeveloper #LearningByDoing
To view or add a comment, sign in
-
Built a simple web form with JavaScript validation! 🔹 Ensures correct user input 🔹 Displays real-time error messages 🔹 Improves usability and interaction This project helped me understand how important client-side scripting is in modern web development. Looking forward to learning more! 🚀 #JavaScript #WebDev #Projects #LearningByDoing#frontend
To view or add a comment, sign in
-
Built a Simple Student Card UI using HTML, CSS & JavaScript! I’ve been exploring core web development concepts and created a small project that simulates component-based design without using any frameworks. 🔹 Key Highlights: • Designed a clean and responsive student form UI • Implemented a reusable "StudentCard" component using JavaScript functions • Managed state using plain JavaScript objects • Practiced event handling to capture and render user input dynamically • Understood the basics of props by passing data into components This project helped me strengthen my fundamentals in DOM manipulation and structuring code in a component-like approach. Sometimes, going back to basics is the best way to truly understand how things work under the hood! Next step: Try building the same using React to see the difference. #NunnariAcademy #WebDevelopment #JavaScript #FrontendDevelopment #LearningByDoing #HTML #CSS #CodingJourney
To view or add a comment, sign in
-
-
🚀 Built a Simple Password Generator 🔐 I’ve been working on improving my frontend + JavaScript skills, and I just built a small project — a Password Generator using HTML, Tailwind CSS, and JavaScript. 🔧 Features: • Generate secure random passwords • Customize length (4–30) • Include uppercase, lowercase, numbers, and symbols • Copy to clipboard functionality This project helped me strengthen my understanding of: ✔ DOM manipulation ✔ Event handling ✔ JavaScript logic ✔ Tailwind UI design 🌐 Live Demo: https://lnkd.in/gbWztGk4 💻 GitHub Repo: https://lnkd.in/gtdNK9nN This is a small step, but I’m focusing on consistency and building projects regularly. More coming soon 💪 #JavaScript #WebDevelopment #Frontend #TailwindCSS #MERNStack
To view or add a comment, sign in
-
-
Just built a QR Code Generator using HTML, CSS, and JavaScript 💻✨ This small project helped me strengthen my understanding of core frontend concepts. 🔥 What I learned from this project: ✔ DOM manipulation in JavaScript ✔ Handling user input dynamically ✔ Working with APIs (QR Code generation API) ✔ CSS Flexbox for layout design ✔ Responsive design using media queries ✔ Button interactions and UI effects Github: https://lnkd.in/dUNqSDrs 💡 Key takeaway: Small projects teach the biggest lessons. Every bug I faced made me understand JavaScript and better than before. 🎯 Features of this project: Generate QR Code from text or URL Instant preview of QR code Simple and clean UI Responsive design for all devices I’m still learning and improving step by step, and this is one of many projects in my journey. 💬 I’d love feedback or suggestions from developers! #HTML #CSS #JavaScript #WebDevelopment #Frontend #GitHub #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
Built a Rock Paper Scissors Game to sharpen my JavaScript skills. As part of improving my frontend development skills, I created this simple but interactive project using HTML, CSS, and JavaScript. It was a great hands-on way to practice: 💠 DOM manipulation 💠 Event handling 💠 Game logic implementation 💠 Dynamic UI updates Working on small projects like this helps strengthen core concepts and builds confidence in writing better JavaScript. I’ve attached a short demo video of the project below. You can also check out the live project here: https://lnkd.in/dBgzzbm4 #JavaScript #WebDevelopment #FrontendDevelopment #100DaysOfCode #CodingProjects #HTML #CSS #LearningByBuilding
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development