View Single Post
Old 01-28-2005, 08:38 PM   PM User | #11
glenmac
Regular Coder

 
Join Date: Nov 2003
Location: Vancouver Island Canada
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
glenmac is an unknown quantity at this point
I tried what you suggested but to no avail,can you see where I went wrong?
Code:
<a href="javascript:var%20o=document.documentElement,p,w=window.open('','_blank'),d=w.document;d.write('<html><body><pre>');z('<'+o.tagName);for(var%20i=0;p=o.attributes[i],i!=o.attributes.length;i++)if(p.specified)z('%20'+p.nodeName+'="'+p.nodeValue+'"');z('>'+o.innerHTML+'</'+o.tagName+'>');d.write('</pre></body></html>');d.close();function%20z(s){d.write(s.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;'));}">test</a>
Do you think your code could be adapted to use the add bookmark code shown in this post;
http://www.codingforums.com/showthread.php?t=33368
Code:
<script>
javascript:external.AddFavorite(codeForBookmarklet)</script>

And while I'm here could you tell me how to add a link to a post? Hope I'm not being a bother.
__________________
lantzvillecomputers.com

Last edited by glenmac; 01-28-2005 at 09:00 PM..
glenmac is offline   Reply With Quote