SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Apr 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Redirecting links passed from a server-side application?

    Hi, Im sorry I do not know too much about programming other than HTML/CSS. I would like to use javascript to redirect the links outputed from a server application. The page is here: http://lindabull.topproducerwebsite....ed-listing.asp.

    I need those home listing links to appear in a new window with a "base domain" I specify. Is that possible? Thanks.

  2. #2
    SitePoint Zealot Ken Sharpe's Avatar
    Join Date
    Apr 2008
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure I get what you're asking. Are you saying that when a visitor comes to this site, you want a new window to pop up with a url that you specify?

  3. #3
    SitePoint Member
    Join Date
    Apr 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea, I want to specify the link address myself. I think I know what I need to do. I need to use this function:

    var anchors = document.getElementsByTagName("a");

    in a modified way they used it here - http://www.sitepoint.com/print/stand...ompliant-world.

    But, no matter how I use that code, the javascript isnt working when I use it on a test static page. - http://www.tomlinnicks.com/samplesit...r1/jstest.html


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
  •