login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

<script type="text/javascript">
function bookmark_us(url, title){
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
... </script>

Bookmark Us Javascript
http://www.reconn.us/content/view/43/64/

Categories

/Channels/techie/web development

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

<script type="text/javascript">

function bookmark_us(url, title){

if (window.sidebar) // firefox
    window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
    var elem = document.createElement('a');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar');
    elem.click();
}
else if(document.all)// ie
    window.external.AddFavorite(url, title);
}
</script>

HTML

&lt;script type="text/javascript"&gt;<br><br>function bookmark_us(url, title){<br><br>if (window.sidebar) // firefox<br>&nbsp;&nbsp;&nbsp; window.sidebar.addPanel(title, url, "");<br>else if(window.opera &amp;&amp; window.print){ // opera<br>&nbsp;&nbsp;&nbsp; var elem = document.createElement('a');<br>&nbsp;&nbsp;&nbsp; elem.setAttribute('href',url);<br>&nbsp;&nbsp;&nbsp; elem.setAttribute('title',title);<br>&nbsp;&nbsp;&nbsp; elem.setAttribute('rel','sidebar');<br>&nbsp;&nbsp;&nbsp; elem.click();<br>} <br>else if(document.all)// ie<br>&nbsp;&nbsp;&nbsp; window.external.AddFavorite(url, title);<br>}<br>&lt;/script&gt;