Connecting Tech Pros Worldwide Help | Site Map

ugly source code with embedded javascript in html

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 09:35 PM
ngoc
Guest
 
Posts: n/a
Default ugly source code with embedded javascript in html

Hi
I want to make homepage with javascript for drop down navigation menu.
Looking around some webpages, I see javascript code is embedded in html
code. It is ugly and unmaintainable. Are there any way to make a
navigation menu in a file and link to it like CSS technique? So when I
change something in navigation menu file, any pages is changed.
Thanks
ngoc

  #2  
Old July 23rd, 2005, 09:35 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: ugly source code with embedded javascript in html



ngoc wrote:

[color=blue]
> I want to make homepage with javascript for drop down navigation menu.
> Looking around some webpages, I see javascript code is embedded in html
> code. It is ugly and unmaintainable. Are there any way to make a
> navigation menu in a file and link to it like CSS technique?[/color]

You can certainly put script code into an external JavaScript file and
include it with
<script type="text/javascript" src="file.js"></script>

--

Martin Honnen
http://JavaScript.FAQTs.com/
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.