SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2001
    Location
    Kansas City, MO
    Posts
    145
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need urgent help with this javascript

    This is the link code:

    <a href="javascript:loadNewFragment('contact_info.html','contentHolder');" class="chromestyle">Home</a>

    Is there any way to work in code to reload the page when someone clicks the Home link?

    Any help would be appreciated.

  2. #2
    Smart programmer silver trophy M.Zeb Khan's Avatar
    Join Date
    Jan 2004
    Location
    Luton, Beds
    Posts
    1,792
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Andwise,

    Could you also post the function code of loadNewFragment()?

    If you just want a simple reload on click with that link try this
    Code:
    <a href="javascript:;" onClick="window.location.reload()" class="chromestyle">Home</a>
    Also try this one if you mean to reload the same link with both function working and reloading:
    Code:
    <a href="javascript:loadNewFragment('contact_info.html','contentHolder');" class="chromestyle" onClick="window.location.reload()">Home</a>
    Good luck

    ۔

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2001
    Location
    Kansas City, MO
    Posts
    145
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The second option is what I was looking for. Thank you so much. I am forever in your debt .

    Andy

  4. #4
    Smart programmer silver trophy M.Zeb Khan's Avatar
    Join Date
    Jan 2004
    Location
    Luton, Beds
    Posts
    1,792
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Andwise View Post
    The second option is what I was looking for. Thank you so much. I am forever in your debt .
    lol, glad it worked

    Thanks

    .


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
  •