is it good to wite multiple time <script type="text/javascript"> on one php page?
Posted
by I Like PHP
on Stack Overflow
See other posts from Stack Overflow
or by I Like PHP
Published on 2010-04-23T12:50:49Z
Indexed on
2010/04/23
12:53 UTC
Read the original article
Hit count: 204
JavaScript
i m using many tiny java script code at one php page, i always write java script code in below style
<script type="text/javascript">
// <![CDATA[
----code 1---------
// ]]>
</script>
<script type="text/javascript">
// <![CDATA[
----code 2-----
// ]]>
</script>
<script type="text/javascript">
// <![CDATA[
$(document).ready.(function(){
});
// ]]>
</script>
i want to know that is it good practice to write separate <script type="text/javascript"></script>
on same page or
we have to write all java script code under one time declaration
© Stack Overflow or respective owner