i am new to Netbeans, i created the web project, now i want to write javascript for one html page, how should i write,
A:
in the head of your html page:
<script type="text/javascript">
//your javascript code
alert('Hello js');
</script>
Nicky De Maeyer
2009-12-01 11:54:37
hi,i want to write external script file,how should i write.
rupa
2009-12-02 09:25:54
A:
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.
Ondrej Slinták
2009-12-01 11:59:50