Magento : Get JS Url

Following are different ways to get JS URL in Magento.

1) You can get the Base JS Url in Magento with the following syntax:

Syntax : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);

2) You can get the Base JS Url in Magento with the following syntax:

Syntax : Mage::getBaseUrl(‘js’);

Leave a Reply