SHARE
Facebook X Pinterest WhatsApp

Automate Form Submissions using Bookmarklets

Written By
thumbnail
Rob Gravelle
Rob Gravelle
Jun 16, 2015

Automate Form Submissions using Bookmarklets

I recently learned of a technically inclined user who wrote “macros” to streamline data entry into a complex enterprise Web application. My initial reaction was: “There are no macros in Internet Explorer so how did he hook into the page?” It turned out that he was using something called a Bookmarklet. I don’t know how I managed to never hear about them for all these years, but I could immediately envision a myriad of uses for them. In today’s article, I’ll explain what they are, how they work, and how to use them to automatically fill out and submit a form one time or a thousand times over!

What is a Bookmarklet?

Let’s start with what a bookmark is. It’s just a link to a Web resource that usually begins with the “http:”, “file:”, or “ftp:” protocol. There is another special prefix that browsers recognize: “javascript:”. It tells the browser to execute everything that comes after as JavaScript code. You can try it yourself in a hyperlink like so:

<a href="javascript: alert('Howdy ho!');">Try this out!</a>

bookmarklet_creation_in_chrome.jpg

Recommended for you...

The Revolutionary ES6 Rest and Spread Operators
Rob Gravelle
Aug 23, 2022
Ahead of Time (AOT) Compilation in Angular
Tariq Siddiqui
Aug 16, 2022
Converting a JavaScript Object to a String
Rob Gravelle
Aug 14, 2022
Understanding Primitive Type Coercion in JavaScript
Rob Gravelle
Jul 28, 2022
HTML Goodies Logo

The original home of HTML tutorials. HTMLGoodies is a website dedicated to publishing tutorials that cover every aspect of being a web developer. We cover programming and web development tutorials on languages and technologies such as HTML, JavaScript, and CSS. In addition, our articles cover web frameworks like Angular and React.JS, as well as popular Content Management Systems (CMS) that include WordPress, Drupal, and Joomla. Website development platforms like Shopify, Squarespace, and Wix are also featured. Topics related to solid web design and Internet Marketing also find a home on HTMLGoodies, as we discuss UX/UI Design, Search Engine Optimization (SEO), and web dev best practices.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.