javascript - Browser turn into quicknotepad and bookmark -


i random search on google "how can use browser window notepad" , found solution type on browser

data:text/html, <html contenteditable>

reference url

my question is there option save on browser typed data or bookmark typed data?

thanks

you need html instead of data:text/html, <html contenteditable>

data:text/html, <html><body><input type=button id="add" onclick='location.href=location.href.replace(/enter text here/g,"")+ document.getelementsbytagname("div")[0].innerhtml'  value="add url" /><br/><br/><div contenteditable>enter text here 

this script adds text body url bookmark current page in browser. pressing crtl+d


Comments