Include js link in your page using xml file in magento


How can we include link of javascript file in our page using xml file
check below code

<block type="core/text" name="widget.js"><action method="setText"><text><![CDATA[<script type="text/javascript" src="http://www.domain.com/j/2/widget.js"></script>]]></text></action></block>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s