Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Link back code

  1. #1
    New Coder
    Join Date
    Jul 2006
    Location
    California, USA
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Link back code

    Can anybody share the link back and bookmark codes which I can custominze to use on my website?
    Thanks
    Eddie
    Like to make web development as another hobby of mine and share my fun hobby - flying RC helicopters -with you all. www.helitown.com/forum

  • #2
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts
    link back = javascript:history.back();
    Code:
    <a href="javascript:history.back();"> Back </a>
    cheers

    baleric

  • #3
    Regular Coder googleit's Avatar
    Join Date
    Jul 2006
    Location
    birmingham, uk
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts
    add this to the head tag
    Code:
    <script 
    language="JavaScript" type="Text/Javascript"><script urlAddress 
    = "http://yoursite.com"; var pageName = "page name"; function addToFavorites() { if (window.external) { window.external.AddFavorite(urlAddress,pageName) 
    } else { alert("Sorry! Your browser doesn't support this function."); 
    } } // --></script>
    Then place this bookmark script in your html between the <body> and </body> tags, where you want the prompt to appear on your page
    Code:
    <a 
    href="javascript:addToFavorites()"><font color="#0000FF" 
    face="Arial">Bookmark Page !</font></a>

  • #4
    Senior Coder
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1,013
    Thanks
    0
    Thanked 0 Times in 0 Posts
    LOL This is so helpful:
    Code:
    alert("Sorry! Your browser doesn't support this function.");
    The Ultimate [Cross-browser] Add Bookmark Script
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
    Java != JavaScript && JScript != JavaScript
    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •