Change the href of the link element on every web page in JavaScript

Home Forums Web Development HTML, JavaScript and CSS Change the href of the link element on every web page in JavaScript

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  Pavan 4 years, 8 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4803

    Pavan
    Moderator

    In Asp.net web application, I have a user control for showing the header of the applciation on all pages. In the header I have an anchor tag like as:

    [code title=””]<div class=”divfield” runat=”server”
    id=”divreadinst” style=”padding-left: 20px;
    display: none”>
    Read the instructions: <a href=”#” id=”lnkURL”
    runat=”server” style=”text-decoration: underline;
    color: blue; font-style: italic”>Click Here
    </div>
    [/code]
    My requirement is that I need to change the hyper link of lnkURL element according to the requested page.
    Can anyone help me to write a JavaScript function to do that?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.