Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to include js in magento?



How to include js in magento?..

Answer / Rohit Bhatnagar

In Magento, you can include JavaScript by following these steps:
1. Create or edit a JS file in your custom module's View > js folder.
2. Define the script within the module's di.xml file.
3. Register the script in the layout XML file (e.g., default_head_blocks.xml).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Magento PHP Interview Questions

How will you get first and last item from the collection in magento?

1 Answers  


How many sites use magento?

1 Answers  


List the magic methods in magento?

1 Answers  


Why magento is preferred over other e-commerce platforms?

1 Answers  


What is difference between wordpress and magento?

1 Answers  


Is magento a crm?

1 Answers  


How much is magento per month?

1 Answers  


How to enable product's custom attribute visibility in frontend?

1 Answers  


Why magento is best for ecommerce?

1 Answers  


Explain the difference between eav and flat model..

1 Answers  


How good is magento?

1 Answers  


Explain how to write custom sql query in magento?

1 Answers  


Categories