SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Threaded View

  1. #1
    SitePoint Evangelist
    Join Date
    Oct 2000
    Posts
    430
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple Java Script Help Please

    Hi,

    I'm using this bit of Javascript for a jump menu:

    onChange="top.window.location.href = '/'+this.options[this.selectedIndex].value+''">

    However (I'm terrible at JS by the way) I cant get it to do what I what as I require it to jump a combination of full URLs like http://blah.com, and relative urls like /forum.html . How can I get this to work?

    What I really need is it to jump to exactly what is written in the value tags like this:
    <option value="humour/">Humour</option>
    <option value="http://www.link.com">link</option>


    Any ideas???

    cheers
    Last edited by ChilliBoy; Aug 16, 2001 at 12:44.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •