开发者

how to write javascript file in Netbeans IDE 6.7.1

开发者 https://www.devze.com 2022-12-13 02:41 出处:网络
i am new to Netbeans,开发者_开发技巧 i created the web project, now i want to write javascript for one html page,

i am new to Netbeans,开发者_开发技巧 i created the web project, now i want to write javascript for one html page, how should i write,


If you wish to create a .js file: File -> New File... -> Other -> JavaScript File

Else just add <script type="text/javascript">...</script> to head of your HTML page.


in the head of your html page:

<script type="text/javascript">
    //your javascript code
    alert('Hello js');
</script>
0

精彩评论

暂无评论...
验证码 换一张
取 消