• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 582
  • Last Modified:

how do you add javascript when using dreamweaver 8

im trying to create a web page. i have entered a table. inside that table i want to add a java script.

i go to my INSERT TAB, then click on HTML, then SCRIPT, then SCRIPT AGAIN.
the script window opens, and im not sure if i need to enter the scriptin the "Content" part or create a JS file altogether and have the SOURCE point to the js file.
please advise
1 Solution
if you want your javascript to be contained as part of the document, just type your script in the content box. otherwise, you can create an external .js file and give it's path as the SRC.
the diference is that when the browser loads an external JS file, it creates another http connection to retrieve the js file, so if it's not a large script and won't be used again in another page this will add alot of overhead. if it's only a small script, just put it in the content box. if the same part of code is used in alot of pages..it's best to have it as an external js file.
tewlawAuthor Commented:
i do that and i see nothing in the web browser.  what im looking for exactly is a horizontal navigation bar with roll over mouse with down down menus. i see some on web sites and try to view source, but thats not working so well.

don't use dreamweaver !
I think this link explains how to add a javascript menu very well:

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now