I want to create a chrome bookamrk that prompts the user for a value (and then sets that value in a cookie).
I am unable to get the prompt to display. Is there a way to do this?
Current code:
javascript:(function(){var days=window.prompt("Number of days", "d"); var daysInHours= 24*days; document.cookie='clockoffset=PT' + daysInHours + 'H0M';})()
Apparently you cannot run bookmarklets from the Chrome new tab page.
If you want to do something from there then take a look at writing a Chrome Application.