I am following this tutorial to create a tabbed view. As we can see, we have included four external JS files in the <head>
section.
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.0/build/element/element-beta-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.0/build/connection/connection-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.0/build/tabview/tabview-min.js"></script>
Then in the <body>
, the only JS
code concerned with the tabs is
<script type="text/javascript">
var myTabs = new YAHOO.widget.TabView("content-explorer");
</script>
QUESTION:-
Due to some reason, I can not put any code in the <head>
tag. So is there any way I can include the external JS files
in the JS
code before var myTabs = new YAHOO.widget.TabView("content-explorer");
?