Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Why can't i type a javascript url in address bar?  (Read 3857 times)

0 Members and 1 Guest are viewing this topic.

shouvik

    Topic Starter


    Apprentice

  • Computer Hope - Always For Your Help
    Why can't i type a javascript url in address bar?
    « on: January 25, 2006, 11:26:58 PM »
    Why?

    The following url for example(it is javascript)

    Code: [Select]
    [color=#cc0000]javascript:downloadNow('http://software-files.download.com/sd/Uhj4-pkrA-TCZY_XzkNH7YDL7HEFdJaOjgyDxa1w2-WdhcVjwmce4oggyom3kfMI22h-aYMLcjrgGrKTW2wb7ZgB-0c6CVpy/software/10433516/10327521/3/npp.3.2.Installer.exe?lop=link&ptype=3000&ontid=2352&siteId=4&edId=3&pid=10433516&psid=10327521','http://dw.com.com/redir?pid=10433516&merid=6263863&mfgid=6263863&ltype=dl_dlnow&lop=link&edId=3&siteId=4&oId=3040-2352_4-10433516&ontId=2352_4&destUrl=http://www.download.com%2F3001-2352_4-10433516.html','0')[/color]
    and it does not open anything.


    it is a the link "download now" at this page

    if  i remove javascript:downloadNow and also the brackets then alsoit is not working.
    « Last Edit: January 26, 2006, 04:12:39 PM by admin »

    Computer Hope Admin

    • Administrator


    • Prodigy

      Thanked: 248
      • Yes
      • Yes
      • Yes
      • Computer Hope
    • Certifications: List
    • Computer: Specs
    • Experience: Guru
    • OS: Windows 10
    Re: Why can't i type a javascript url in address b
    « Reply #1 on: January 26, 2006, 04:19:17 PM »
    Maybe I misunderstood the question. However when I visit the download.com web page I have no problems opening the link. However, if you're using Firefox or another tabbed browsing browser, if you attempt to open this link in a tab it will not work because it's using JavaScript to open the link.

    If you're trying to create a link on a separate page by using this source code it's likely not working because there is another portion of the JavaScript code elsewhere in the code that is needed for the link to work.

    p.s. I added the code link to your message so it didn't scroll all the way to the right. ;)
    « Last Edit: January 26, 2006, 04:19:36 PM by admin »
    Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
    -Albert Einstein

    shouvik

      Topic Starter


      Apprentice

    • Computer Hope - Always For Your Help
      Re: Why can't i type a javascript url in address b
      « Reply #2 on: January 26, 2006, 08:40:50 PM »
      Ok Admin.

      Thanks for The Reply. :)