SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    ********* Addict WP1's Avatar
    Join Date
    Aug 2000
    Location
    New York , USA
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello All,

    Is there a way to get a site visitor to Reload a page by clicking on a link in the page??

    I was only able to find a script which uses a form button. The panel I am working on ended up looking like this,
    http://www.ironstone.f2s.com/linksuperpanel02.html
    This has a moderately large reload button on it.

    I would like it to look like,
    http://www.ironstone.f2s.com/linksuperpanel02.html
    I want it to look more like this page with the text "Reload".

    Thanks for any and all responses.

    WP
    Webbing Along!!!

  2. #2
    ComDude CryingWolf's Avatar
    Join Date
    Dec 2000
    Location
    I don't know the cat drug it in!!!
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh I don't know try this

    <a href="pagename.html"><img src="smbutton.gif" alt="button"></a>

    Substitute pagename.html with your current page. You will have to make a button if you want one.
    body { background:#000000; color:#000000 }
    HEY, WHO TURNED OUT THE LIGHTS?!?
    Easy come easy go!!!
    CryingWolf

  3. #3
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WP...you got Lyn's javascript in the other link right?
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  4. #4
    ********* Addict WP1's Avatar
    Join Date
    Aug 2000
    Location
    New York , USA
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by creole
    WP...you got Lyn's javascript in the other link right?
    Yes I did,

    Check out the result at,
    http://www.ironstone.f2s.com/lk/link-childsupport.shtml

    ALSO..................

    Thanks for your help. It is one thing to read about CSS but learning to apply it properly and seeing how it can help style web pages is more helpful than words. This has been a "hands on experience". Really worthwhile.

    WP
    Last edited by WP1; Mar 19, 2001 at 10:09.
    Webbing Along!!!

  5. #5
    SitePoint Wizard Goof's Avatar
    Join Date
    Feb 2001
    Location
    Pittsburgh, PA
    Posts
    1,154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe the following should work also:
    <a href="#" onClick="window.location.reload();">My Link</a>

    If I'm wrong, someone please point it out...I'm not the best with javascript.

    Goof
    Nathan Rutman
    A slightly offbeat creative.

  6. #6
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Goof, Mine and yours are exactly identical.
    Just that I don't use the onClick evenet and don't have the '#' as the url.

    So overall, the code is specified was more efficient.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein


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
  •