Results 1 to 2 of 2
Related
-
Adding another <DIV> or adding image to menu Forum: CSS Forum
Replies: 1 -
adding a banner to my site Forum: HTML Forum
Replies: 8 -
Adding Favorites Forum: HTML Forum
Replies: 1 -
add favorites--customizable? Forum: HTML Forum
Replies: 6
-
10-23-2007, 11:26 AM #1
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.
-
10-26-2007, 05:56 PM #2
Re: Adding New Site URL to Favorites on Redirect
Hi
you may use that javascript code:
window.external.AddFavorite('http://www.ahfb2000.com');
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum