Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8089355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:22:09+00:00 2026-06-05T19:22:09+00:00

I want to create a bookmarklet that will allow users to submit URLS from

  • 0

I want to create a bookmarklet that will allow users to submit URLS from sites on the fly as they browse.

I’m looking for three possible implementations of this bookmarklet.

  1. Simply click the bookmarklet and be taken to the page with my form field and have the URL they just came from entered into the field.

  2. Simply click the bookmarklet and be taken to the page with my form field and the link they had highlighted from the previous page is entered into the field.

  3. The preferred option – Click the bookmarklet, a popup (similar to Twitter’s tweet box in size and function) opens with my form field pre-populated with the URL of the page they clicked the bookmarklet on. Like Twitter’s tweet box and facebook’s share box.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:22:11+00:00Added an answer on June 5, 2026 at 7:22 pm

    I typically don’t just give away code, but this is so simple I figure it’s worth sharing and explaining.

    Compressed:

    javascript:(function(f,s,n,o){window.open(f+encodeURICompnent(s),n,o)}('http://example.com?url=',window.location,'yourform','width=300,height=200'));
    

    Expanded

    (function (formurl, site, name, options) {
        window.open(
            formurl+encodeURIComponent(site),
            name,
            options
        );
    }('http://example.com?url=', window.location, 'yourform', 'width=300,height=200'));
    

    The way this works is it just calls an anonymous closure to pass variables to the window.open function. It passes the current page’s location as the uri value in the query string.

    On the page containing your form, you’ll need to populate the correct field with the value from the query string.

    Although this could be written without using a closure, you need to make sure that there isn’t a return value from whatever’s being called, as javascript:<string value> will re-write the DOM with whatever text was in <string value>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a new application (which I will sell) that uses web
I want to create a Delicious bookmarklet in Firefox that bookmarks the current page
I want to create a simple bookmarklet to pass some information from javascript to
I want create a tarball that when extracted the file(s) will be placed at
I want create texture atlas(matrix of images) from multiple images.Is their any applescript that
I'm looking to create a bookmarklet that takes a selected word and the other
I want to create a service that suggests things based on the sites one
I want create constructor that will take one or more integers and save it
I want to create a bookmarklet that sets the page to be editable, that
i want create a custom json data from the mssql 2008 results so that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.