Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Da_Responsive1

Members
  • Joined

  • Last visited

  1. Hello friends! I am novice web designer and currently learning the basics of javascript. The reason why i am learning javascript besides html and css is that I have been advised by many people that to be a successful web designer I should also know javascript. But my question is, is it really necessary to know javascript language to do certain tasks such as client side form validation, image effects (those effects when you click on a small image a bigger version of that image pops up), banner sliders etc. Or is there some other easy alternatives to do those common tasks without even knowing javascript programming?
  2. ok. Thanks. So is it best to always create variables inside functions to avoid bugs? When should we use global variables?
  3. putting the script link in the body after the DOM element works fine.Thanks for the helpful suggestion. So is it the actual way of linking external javascript files to html file, i.e keeping the link in the body and not in the head? when should we link the javascript file in the head?
  4. Hello friends! I am a newbie in javascript. I am having a problem with my external javascript file. The code inside the external javascript file does not work. But when the same code is used inside the body tag of the html file it works just fine. I am unable to figure out what the problem is. Please help. There are two files, index.html and myScript.js which are both inside the same folder. Here is my html code inside index.html file : <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Javascript Practice</title> <script src="myScript.js"></script> </head> <body> <p id="demo"></p> </body> </html> -------------------------------------------------------------------------------- And here is my javascript code inside the myScript.js file : var x = 1; var y = 2; var z = x+y; document.getElementById("demo").innerHTML = z;

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.