Javascript in Bookmarks URL?

windows
#1

Hello,

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=‘https://banksite.com/?startDate=’ + startdate + ‘&endDate=’ + enddate;

Thanks,
Dennis

#2

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

Thanks

1 Like
closed #3