Announcement

Collapse
No announcement yet.

page url netqoutevar..?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    page url netqoutevar..?

    is there a netqoutevar that i can insert into the url i wish to bookmark this page, so i will return to the same place i was when i bookmarked.. or maybe another way..

    im using the following:

    // message to show in non-IE browsers
    var txt = "Bookmark this page"

    // url you wish to have bookmarked
    var url = "http://www.tungstenblads.co.uk";

    // caption to appear with bookmark
    var who = "NETQUOTEVAR:PAGETITLE"

    // do not edit below this line
    // ===========================

    var ver = navigator.appName
    var num = parseInt(navigator.appVersion)
    if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
    document.write('<A HREF="javascript:window.external.AddFavorite(url,who);" ');
    document.write('onMouseOver=" window.status=')
    document.write("txt; return true ")
    document.write('"onMouseOut=" window.status=')
    document.write("' '; return true ")
    document.write('">'+ txt + '</a>')
    }else{
    txt += " (Ctrl+D)"
    document.write(txt)
    }
    </script>
    Simbo thanks you in advance again

    Location: Jersey Channel Islands

    #2
    cracked it

    this works selects the url of the page the customer is on when they click the link and thus returns them to this spot when the favourite is selected


    <script>
    var txt = "Bookmark this page"
    var who = "NETQUOTEVAR:PAGETITLE"

    var ver = navigator.appName
    var num = parseInt(navigator.appVersion)
    if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
    document.write('<A HREF="javascript:window.external.AddFavorite(location.href,who);" ');
    document.write('onMouseOver=" window.status=')
    document.write("txt; return true ")
    document.write('"onMouseOut=" window.status=')
    document.write("' '; return true ")
    document.write('">'+ txt + '</a>')
    }else{
    txt += " (Ctrl+D)"
    document.write(txt)
    }
    </script>
    Last edited by simbo; 10-Feb-2007, 05:09 PM. Reason: better
    Simbo thanks you in advance again

    Location: Jersey Channel Islands

    Comment


      #3
      Gary,

      Nice one, thanks for posting it here.

      Kind regards,
      Bruce King
      SellerDeck

      Comment

      Working...
      X