Javascript in Bookmarks URL?


Was wondering if it was possible to run javascript in a bookmark URL. It can be done on Google Chrome and I use it to enter date ranges for my bank since they don’t have a calendar I can play with on the site.

This is what the URL looks like for the bookmark. Would this work? I haven’t been able to get it to.

javascript:var startdate = escape(prompt(‘Start Date’));var enddate = escape(prompt(‘End Date’));window.location=‘’ + startdate + ‘&endDate=’ + enddate;


Figured it out by creating a bookmarklet instead. I cannot delete topic, but it is solved.


1 Like