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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:29:59+00:00 2026-05-23T10:29:59+00:00

I allow the user to store a domain in local storage (e.g. http://192.168.1.104 ).

  • 0

I allow the user to store a domain in local storage (e.g. http://192.168.1.104). My method of pulling the domain out of local storage is like this:

<script type="text/javascript">
  domain = localStorage['domain'];
  function DOMAIN(dive) {
    window.location=domain+dive;
  }
</script>

and I can open it like this:

<a href="javascript:DOMAIN('/');">CLICK HERE</a>

or

<a href="#" onClick="javascript:DOMAIN('/');">CLICK HERE</a>

but I can’t seem to get it to allow opening in a new tab (chrome v13). It’s driving me nuts, any suggestions?

  • 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-05-23T10:30:00+00:00Added an answer on May 23, 2026 at 10:30 am

    Okay, I figured it out, but it’s a little hacky and restless. Make a dummy html document, say /html/home.html for instance. Call the js-function inside the dummy doc:

    <html>
    <head>
      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
      <title>Ripping Status</title>
      <script type="text/javascript">
        domain = localStorage['domain'] || '';
        function init() {
          window.location=domain+'/';
          document.getElementById( 'box' );             
        };
      </script>
    </head>
    <body onload="init();">
      <div id="box"></div>
    </body>
    </html>
    

    where ‘domain’ is stored as, say, http://192.168.1.101. Now, call /html/home.html inside the main html document via

    <a href="/html/home.html">CLICK HERE</a>
    

    and it allows right click > open new tab, window, etc as you would expect.

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

Sidebar

Related Questions

I'm wanting to store some contact information and allow the user to call/email the
Through the website, I need to allow the user to add attachments and store
I want to allow my user to store custom phrases, to be displayed in
I'm at the point where I can allow the user to store credentials for
I'm writing this application that will allow a user to define custom quizzes and
We would like to start using Google Cloud Storage as a persistent store for
I would like to allow user to sign on a screen with stylus like
I'm creating an application that allows the user to store information about their classes.
I have an online store. A products page that allows the user to view
I want to allow user to upload a file of txt ,doc or pdf

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.