I'm shit at javascript so bear with me
I'm trying to create a bookmarket that shows a confirmation dialog when clicking it. This is what the bookmarklet currently looks like
javascript:confirm("Are you sure you want to restart Chrome?");
How can I change it so that when I click "OK" I'm taken to this URL
chrome://restart
>>371278
if (javascript:confirm("Blah") window.location='chrome://restart'
Should do it. If Chrome allows such a thing.
>>371332
This works fine for standard URLs but as you implied it doesn''t work for chrome:// URLs
Thanks nonetheless for the help