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 8314477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:49:50+00:00 2026-06-08T20:49:50+00:00

I am using a bookmarklet to load an html page which all works great,

  • 0

I am using a bookmarklet to load an html page which all works great, but, doesn’t look so hot due to browsers generally being ugly around the outside!

Is there a way to load the page completely frameless? Like a jquery modal version of it which I don’t think is possible from within the page, overlaying itself so to speak.

Is there a way to maybe throw the page out in document.write commands and put a js version of it out there instead? Or some other way?

Amazon Example:

Create a bookmarklet using the following to code to get a clearer example of what I mean – doesn’t matter if you don’t have an account you’ll see the effect.

javascript:(function(){var%20w=window,l=w.location,d=w.document,s=d.createElement('script'),e=encodeURIComponent,o='object',n='AUWLBookenGB',u='https://www.amazon.co.uk/wishlist/add',r='readyState',T=setTimeout,a='setAttribute',g=function(){d[r]&&d[r]!='complete'?T(g,200):!w[n]?(s[a]('charset','UTF-8'),s[a]('src',u+'.js?loc='+e(l)+'&b='+n),d.body.appendChild(s),f()):f()},f=function(){!w[n]?T(f,200):w[n].showPopover()};typeof%20s!=o?l.href=u+'?u='+e(l)+'&t='+e(d.title):g()}())
  • 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-08T20:49:53+00:00Added an answer on June 8, 2026 at 8:49 pm

    If all you want is to show some html that you have on another page, you can do something like this:

    var modal = document.createElement('iframe');
    modal.setAttribute('src', 'http://codinghorror.com');
    modal.setAttribute('scrolling', 'no'); // no scroll bars on the iframe please
    modal.className = 'modal';
    document.body.appendChild(modal);
    

    With some basic styles:

    .modal {
        border:0;            
        height:200px;
        position:fixed;
        right:20px;
        top:20px;
        width:200px;
        z-index:101;   
    }​
    

    Of course, you should load these styles from a remote host:

    var c = document.createElement('link');
    c.type = 'text/css';
    c.rel = 'stylesheet';
    c.href = '//example.com/main.css';
    document.body.appendChild(c);
    

    So your bookmarklet looks like: http://jsfiddle.net/radu/mTKHQ/. This is with the css hosted locally since I didn’t bother uploading it anywhere. Now, this is very barebones and there is obviously a lot more you can do. First of all, you can write your own DOM instead of using an iFrame. You can add a close button, various events, etc. At that point, it would make sense to do what amazon did and use a script/stylesheet loader to load files from a remote host, like so:

    (function (d) {
        var s = d.createElement('script');
        s.type = 'text/javascript';
        s.async = true;
        s.src = '//example.com/main.js';
        d.body.appendChild(s);
        var c = d.createElement('link');
        c.type = 'text/css';
        c.rel = 'stylesheet';
        c.href = '//example.com/main.css';
        d.body.appendChild(c);
    }(document));
    

    Prepend this with javascript:, and you’ve got your new bookmarklet:

    javascript:(function(d){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='//example.com/main.js';d.body.appendChild(s);var c=d.createElement('link');c.type='text/css';c.rel='stylesheet';c.href='//example.com/main.css';d.body.appendChild(c);}(document));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using javascript I'm trying to load images not on the current page (from an
I am using a bookmarklet which can (obviously) be called by the user anywhere:
I have an iframe I put on a page using a bookmarklet, I want
I've created a javascript bookmarklet that gets the current page's title and URL, using
I'm using the jQueryify bookmarklet on a page so that I can call jQuery
I'm creating a small web page using jquery-ui-1.8 which is having a frameset and
How do I reload the current web page using a bookmarklet? I am looking
I'm using the following javascript in a bookmarklet but it keeps on adding the
How can I load an external JavaScript file using a bookmarklet? This would overcome
I'm making a bookmarklet which will load jQuery if the object is not found.

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.