Bookmarklet: Submit a login form using javascript within a bookmark
If you’re like me, you have many bookmarks to administration areas that require authentication. For you, this script is a priceless time-saver.
Let’s say your login page has a form similar to the following…
<form action="/login.php" method="post"> <label>Username: <input type="text" name="user"></label> <label>Password: <input type="password" name="pass"></label> <input type="submit" value="Log In"> </form>
Some logins simply cannot be stored in the browser’s password system. So, to save you the extra effort of manually logging in on each visit to such pages, create a bookmark that automatically logs you into the system.
Here’s the code to submit that form using a bookmarklet… Read more
jQuery Add Bookmark to Favorites Script
Here is a quick example of how to use jQuery along with traditional browser sniffing techniques to create a dynamic “Bookmark Us” link.
Google CDN (latest 1.x version, theme)…
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script> <link type="text/css" rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1/themes/blitzer/jquery-ui.css" />
The javascript… Read more
