41 users online (1 members and 40 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 1
  2. adding a banner to my site    Forum: HTML Forum
    Replies: 8
  3. Adding Favorites    Forum: HTML Forum
    Replies: 1
  4. add favorites--customizable?    Forum: HTML Forum
    Replies: 6
  1. #1
    byrddogx's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Location
    Memphis, TN
    Posts
    2

    Question Adding New Site URL to Favorites on Redirect

    Noob question and very very limited experience in HTML.
    OK, I have a page where if a user hits, I have them redirected to a different location using the code below. However, where the code to "Add This Site To Your Favorites" is, I want it to add the new URL (redirected page) to favorites and not the page they are they are currently viewing.
    Can this be done and how?
    Code:
    [FONT='Arial','sans-serif']<HTML> 
    <HEAD> 
    <META HTTP-EQUIV="refresh" content="10;URL=http://collaborate/sites/test"> 
    <TITLE>This Site has Moved!.</TITLE> 
    </HEAD> 
    <BODY> 
    
    [/FONT]
    [FONT='Arial','sans-serif']This site has moved to a new location; please update your favorites/bookmarks.[/FONT]
    [FONT='Arial','sans-serif'] [/FONT]
    [FONT='Arial','sans-serif']You will be redirected to new location in 10 seconds.[/FONT]
    [FONT='Arial','sans-serif'] [/FONT]
    [FONT='Arial','sans-serif']<FORM>[/FONT]
    [FONT='Arial','sans-serif']<INPUT TYPE = "button" VALUE = "Add This Site To Your Favorites" onclick = 'window.external.AddFavorite(location.href,document.title);'>[/FONT]
    [FONT='Arial','sans-serif']</FORM>[/FONT]
    [FONT='Arial','sans-serif'] [/FONT]
    [FONT='Arial','sans-serif'] [/FONT]
    [FONT='Arial','sans-serif']Please contact XXX@XXX.co with questions or concerns.[/FONT]
    [FONT='Arial','sans-serif']
    </BODY> 
    </HTML>[/FONT]
    Last edited by HTML; 07-13-2012 at 10:15 AM.

  2. #2
    dcuerrier's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Location
    Brossard, Quebec, Canada
    Posts
    13

    Re: Adding New Site URL to Favorites on Redirect

    Hi
    you may use that javascript code:
    window.external.AddFavorite('http://www.ahfb2000.com');



Tags for this Thread