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
thanks
tewlawAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vidularandunuCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.

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

http://javascript-array.com/scripts/simple_drop_down_menu/
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.