shobhitjain Posted January 16, 2010 Share Posted January 16, 2010 hey guys ,i am using javascript to capture URL of a webpage. but i encountered this webpage , which javascript is not capturinghttp://www.lonelyplanet.com/thorntree/thre...853892#12853892 i am using location.href.replace to catch url's Link to comment Share on other sites More sharing options...
Synook Posted January 16, 2010 Share Posted January 16, 2010 What do you mean by "catch"? How are you running JavaScript on the remote page? Some code would be helpful. Link to comment Share on other sites More sharing options...
shobhitjain Posted January 16, 2010 Author Share Posted January 16, 2010 No sir, it is not so.... java script:void((function(){var%20a=window.getSelection();var%20b=location.href.replace(/^http%5C:%5C/%5C/(.*)$/,'$1');var%20c=document.title;window.open('www.yourdomain.com?url=http://'+b+'&title='+c+'&text='+escape(a),'mydomain','height=500,width=400,left=100, top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');})())i am using this bookmarklet to capture url's ,,, catch here ,,means storing url to some file Link to comment Share on other sites More sharing options...
justsomeguy Posted January 17, 2010 Share Posted January 17, 2010 Have it alert the b variable to see what it captured from that URL. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.