homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Help Needed with External .JS Files
How do I use URL links in these please?
litmania com

 7:09 pm on Mar 19, 2001 (gmt 0)

My knowledge of JavaScript is not great, and I've discovered that I can't put some things in those .JS files. But I'm gradually feeling my way and am working out ways of incorporating affiliate links into them. Would be great if I could add search boxes to those .JS files, but the codes provided by affiliate programs are not in pure Javascript.

One thing: is it possible to add a drop-down menu to a .JS file?
I've tried the following, which works normally, but not via a .JS call:

<FORM NAME="nav"><SELECT NAME="SelectURL" onChange="window.open (document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value,'newwindow')">

<OPTION VALUE="http://www.freefind.cjb.net"SELECTED>
Please select site to visit:
<OPTION VALUE="http://CDUK.Best.CD">
CD UK - Discount Music
<OPTION VALUE="http://Nutrel.cjb.net">
Nutrel - Health
<OPTION VALUE="http://TopSitesUK.cjb.net">
UK Top - Best of British

Spent ages trying to work this one out. Been scouring all the JS sites, but no luck.

Thanks :)



 9:24 am on Mar 20, 2001 (gmt 0)

Litmania, it seems no one knows the answer to this off the top of their heads - you might have more luck in the Browsers forum where the JavaScript people hang out ;)

I'll rally the troops and see if we can get an answer for you though!


 11:53 am on Mar 20, 2001 (gmt 0)

Here's an earlier thread discussing methods for using an external javascript file for navigation. It has several good references and techniques -- hope it has the help you need.



 11:38 am on Mar 21, 2001 (gmt 0)

Erm..because its not Java Script?

Because the <form> tags specify where the form is on the page?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved