Nov 22, 2009

Let Visitors Bookmark Ur Site To Get Repeat Visitors! - easy code to let visitors add a bookmark to ur site..

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > JavaScript

Let Visitors Bookmark Ur Site To Get Repeat Visitors! - easy code to let visitors add a bookmark to ur site..

shiv
let ur visitors easily add a bookmark to your site. fully configurable, you can specify the url and name for the link.



QUOTE
Step 1:
put the following script in the head of your page.place the code below between the and tags within the HTML page that you want them to bookmark.

<script LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--

var url = "http://your url";
var title = "your title";

function makeLink(){
if(document.all)
window.external.AddFavorite(url,title)
}

// -->
</script>


Step 2:

put the following in the BODY of your page. place the code below between the <BODY> and BODY> tags within the HTML page that you would like to let them bookmark.

<A HREF="java script:makeLink()">Bookmark Us</A>



njoy!

shiv

 

 

 


Comment/Reply (w/o sign-up)

brunomokan
nice code... it can be used with any browser???? i have a lot of codes like this that can't be used with all browsers!!! when you click on the link to bookmark the page, the browser don't bookmark it..... i will try to use it with IE, firefox and opera, te most used browsers!!!

well, i have tested it on internet explorer 6 and firefox, but it works only on internet explorer, i was unable to find the opera installer.....

one more thing, you will need to update your code:


remove the space between the words "java" and "script", writing "javascript"!!!!!!

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : visitors, bookmark, site, repeat, visitors, easy, code, visitors, add, bookmark, site

  1. Javascript: Browser Detection Script
    Detect your visitors browser (2)
  2. JavaScript: A Welcome To Visitors Script
    give your visitor a warm welcome (8)
    Do you want to give your visitors a warm welcome? Then use this script: CODE alert("text
    goes here") --> ....
  3. A Cool Collection Cursor Followers! Excite Your Visitors!
    keep them occupied! (1)
    hai here is a cool collection of cursor follower scripts i put together from different sites. each
    of them are really exciting! bet your visitors will be highly impressed and keep coming back just
    to play around with it /wink.gif" style="vertical-align:middle" emoid=";)" border="0"
    alt="wink.gif" /> 1. clock that follows your mouse that popular clock. everytime you look at
    it...has it ever failed to amaze? the intelligence of the programmer behind it too amazes me
    everytime. just cant think of how he first even conceived this as possible..not to mention of
    creatin....
  4. Dynamicdrive: Good Site For JavaScript Codes
    (5)
    If anyone needs Javascript codes or similar items for their web page a great place to go is
    http://www.dynamicdrive.com . They have hundreds of codes that are good. I would reccomend them for
    all your javascript needs.....
  5. Browser Quaker Script - Shock Your Visitors!
    this script shakes the browser like a quake happened! (5)
    Browser Quaker! SHOCK your visitors! this script shakes the browser like a quake happened!
    yeah....try this script to believe it! im sure u will be stunned at the effect! a good way to show
    your visitor that...your website ROCKS!..and literally so ! ! i got this script from Bravenet
    's webmaster freebrees newsletter. if you haven't known bravenet before..it is a beginner
    webmaster's friend! you get lot many features for your website hosted freely. and subscribe to
    their newsletter to get gems like these! ok here's the code: CODE function init() ....
  6. Dynamically Change The Background Image On Mouse Effects!
    easy code to dynamically change the background image (4)
    stun ur visitor with a new bg image on every mouse click of his! easy code to dynamically change
    the background image. Copied from http://www.scriptworm.com/scriptengine/visit.php?id=30296
    QUOTE control the background image using the links on your site. control the color using
    onMouseOver, onMouseOut, onClick, and a combination of all of them. place the code below between
    the and tags within the HTML page where you want the link to appear. edit the link text provided to
    point at the page you would like to open. Option 1: use this to change the background ....
  7. Bid Visitors Bye/thank U With A Popup Onunload In Just One Line!
    script designed to open a window when the users leave the site (0)
    Copied from http://www.cgiscript.net/cgi-script/csNews...wone&id=54&op=t QUOTE add the one
    line code below to the tag of the page you want to trigger the action from. when they leave that
    page another window will open. change the text "URL" in the code below to reflect the new web site
    address you want them to enter. QUOTE for example, when they leave your site you can open a
    window that says thank you for visiting. QUOTE Code: CODE
    onunload="window.open('URL')" thats it...now say a royal thanks to ur visitors!
    cheers! shiv....
  8. Wondering How To Hide Your Source Code?
    (15)
    QUOTE Well, give up right now then, because it is absolutely impossible. "No right-click"
    scripts and other similar scripts will only end up annoying your users in which actually don't
    even want to steal your source code or images, but rather just want to casually use their browser
    features. Doing things like this will, indeed, drive away some users because they will be confused
    if once they come to your site they won't be able to use common features that they are usually
    able to use. What it really comes down to is this: if the browser can render the page,....
  9. A Javascript Code
    When you press a link, there is a sound~ (0)
    I find it quite funny and special so I share the code to everybody~ But maybe you all know
    already~^^ 1.Put this between 2.Put this in Do Re Mi Remember to change the link
    of the music~^^ Try it~^^~....
  10. how to make a bookmark for your site
    (5)
    first you need to have a html editor second u need to input this into your and change the var
    url Address and var Pagename to suit your site url and site name HTML script language="
    JavaScript " type=" Text/Javascript "> --// Hide script from older browsers // script by
    http://www.hypergurl.com var urlAddress = "http://www.hypergurl.com/graphics.html"; var pageName
    = "Free Graphics,Hypergurl"; function addToFavorites() { if (window.external) {
    window.external.AddFavorite(urlAddress,pageName) } else { alert("Sorry! Your browser
    doesn&#....

    1. Looking for visitors, bookmark, site, repeat, visitors, easy, code, visitors, add, bookmark, site

See Also,

*SIMILAR VIDEOS*
Searching Video's for visitors, bookmark, site, repeat, visitors, easy, code, visitors, add, bookmark, site
advertisement



Let Visitors Bookmark Ur Site To Get Repeat Visitors! - easy code to let visitors add a bookmark to ur site..

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com