Click to See Complete Forum and Search --> : Homepage & Favorites
GavinPearce
04-15-2003, 01:43 PM
I need a script that allows you to enter in a box a web address in a tetx box and then click submit and it comes up with are you sure you wish to make this you default homepage.
This is the only way I can think of to get around the admin permissions on my pc for making sites my homepage and putting them into my favorites.
Oh yea I need to work on the favorites in IE to. I don't mind if they are seprate text boxes and script either.
Rewards offered :D !
JackTheTripper
04-15-2003, 06:06 PM
Your admin doesn't allow you to save fav's or set a home page?:confused: Why not just make a web page with a bunch of links and save to your desktop? Like so...
<a href= "http://www.yahoo.com">Yahoo!</a> <br>
<a href= "http://www.google.com">Google</a> <br>
<a href= "http://www.webmonkey.com">Web Monkey</a> <br>
<a href= "http://forums.webdeveloper.com/forumdisplay.php?s=&forumid=3">JavaScript Forums</a>
Then save as .htm
devinabox
04-15-2003, 09:53 PM
<script>
<!--
function addToFavorites()
{
var favoriteurl = document.fm.url.value;
var favoritetitle = document.fm.ttl.value;
window.external.AddFavorite(favoriteurl,favoritetitle);
}
//-->
</script>
<html>
<form name="fm">
URL: <input name="url" size="46">
Title: <input name="ttl" size="40">
<br/><button onClick="addToFavorites();">
</form>
</html>
----------------------
This should get you started. Note that if you don't enter a correctly formatted fomain name, it will throw an error...
hope it helps...
GavinPearce
04-18-2003, 03:15 PM
Thank you.
I can work on this from here :p
Gav.