How to Embed JavaScript in Your HTML ?? Hrushikesh Kokardekar on July 31, 2021 How many of you like dynamic web pages ? Using HTML and CSS you can create and style static web page but you cannot perform actions on it. To make ... Read full post Submit Preview Dismiss Collapse Expand privatecloudev privatecloudev privatecloudev Follow i am a php dev alslc++ python and c# .net c Ilike Email aheisleycook@gmail.com Location calfornai sherman oaks Education Smc and lavc and taftcollege Work Https://uustudiocity.org Joined Dec 8, 2020 • Jul 31 '21 Dropdown menu Copy link Hide i just use external Collapse Expand Hrushikesh Kokardekar Hrushikesh Kokardekar Hrushikesh Kokardekar Follow I am Hrushikesh Kokardekar. One who loves to code. Keen to learn new Things Education Computer Science Joined Jun 25, 2021 • Jul 31 '21 Dropdown menu Copy link Hide Yes that's preferable cause it helps to manage our files in a good manner Collapse Expand privatecloudev privatecloudev privatecloudev Follow i am a php dev alslc++ python and c# .net c Ilike Email aheisleycook@gmail.com Location calfornai sherman oaks Education Smc and lavc and taftcollege Work Https://uustudiocity.org Joined Dec 8, 2020 • Jul 31 '21 Dropdown menu Copy link Hide managing project files is key Hrushikesh Kokardekar Hrushikesh Kokardekar Hrushikesh Kokardekar Follow I am Hrushikesh Kokardekar. One who loves to code. Keen to learn new Things Education Computer Science Joined Jun 25, 2021 • Jul 31 '21 Dropdown menu Copy link Hide True!! privatecloudev privatecloudev privatecloudev Follow i am a php dev alslc++ python and c# .net c Ilike Email aheisleycook@gmail.com Location calfornai sherman oaks Education Smc and lavc and taftcollege Work Https://uustudiocity.org Joined Dec 8, 2020 • Jul 31 '21 Dropdown menu Copy link Hide root \assets\ -< css and and js and imgs go here other files routing and databases Collapse Expand Hrushikesh Kokardekar Hrushikesh Kokardekar Hrushikesh Kokardekar Follow I am Hrushikesh Kokardekar. One who loves to code. Keen to learn new Things Education Computer Science Joined Jun 25, 2021 • Jul 31 '21 Dropdown menu Copy link Hide Surely will look into it 🙂 Collapse Expand juz14girl juz14girl juz14girl Follow Location Sweden Joined Mar 5, 2021 • Aug 1 '21 • Edited on Aug 1 • Edited Dropdown menu Copy link Hide But how does the code looks like inside the separated js file? Sorry if I ask as I am really new to this. Thanks Collapse Expand Hrushikesh Kokardekar Hrushikesh Kokardekar Hrushikesh Kokardekar Follow I am Hrushikesh Kokardekar. One who loves to code. Keen to learn new Things Education Computer Science Joined Jun 25, 2021 • Aug 1 '21 Dropdown menu Copy link Hide Don't be sorry. It's really nice to ask questions. You can see snip of my js file. In my upcoming post you will be more clear about the appearance of the code. dev-to-uploads.s3.amazonaws.com/up... Collapse Expand juz14girl juz14girl juz14girl Follow Location Sweden Joined Mar 5, 2021 • Aug 1 '21 Dropdown menu Copy link Hide Thank you so much! You're so kind. I'll be looking forward to that upcoming post!😊 Hrushikesh Kokardekar Hrushikesh Kokardekar Hrushikesh Kokardekar Follow I am Hrushikesh Kokardekar. One who loves to code. Keen to learn new Things Education Computer Science Joined Jun 25, 2021 • Aug 1 '21 Dropdown menu Copy link Hide Sure. Will try to answer all your questions and explore you all to new topics 😊 Collapse Expand Kevin Ochieng Kevin Ochieng Kevin Ochieng Follow Joined Jul 17, 2021 • Aug 2 '21 Dropdown menu Copy link Hide You could also nest the script tag in the header tag with a defer attribute for the script to be loaded last Collapse Expand Hrushikesh Kokardekar Hrushikesh Kokardekar Hrushikesh Kokardekar Follow I am Hrushikesh Kokardekar. One who loves to code. Keen to learn new Things Education Computer Science Joined Jun 25, 2021 • Aug 2 '21 Dropdown menu Copy link Hide Yes Collapse Expand Hrushikesh Kokardekar Hrushikesh Kokardekar Hrushikesh Kokardekar Follow I am Hrushikesh Kokardekar. One who loves to code. Keen to learn new Things Education Computer Science Joined Jun 25, 2021 • Jul 31 '21 Dropdown menu Copy link Hide Yep external is always preferable Code of Conduct • Report abuse
i just use external
Yes that's preferable cause it helps to manage our files in a good manner
managing project files is key
True!!
root
\assets\ -< css and and js and imgs go here
other files routing and databases
Surely will look into it 🙂
But how does the code looks like inside the separated js file? Sorry if I ask as I am really new to this. Thanks
Don't be sorry. It's really nice to ask questions. You can see snip of my js file. In my upcoming post you will be more clear about the appearance of the code.
dev-to-uploads.s3.amazonaws.com/up...
Thank you so much! You're so kind. I'll be looking forward to that upcoming post!😊
Sure. Will try to answer all your questions and explore you all to new topics 😊
You could also nest the script tag in the header tag with a defer attribute for the script to be loaded last
Yes
Yep external is always preferable