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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:38:46+00:00 2026-05-28T05:38:46+00:00

<browser id=search type=content-targetable src=www.google.com> </browser> Javascript Code // I am using script to set

  • 0
<browser id="search" type="content-targetable" src="www.google.com">
</browser>

Javascript Code

// I am using script to set the property of browser element

var x=document.getElementById('search');

x.docshell.allowAuth="false"     // The code stops here

x.docshell.allowPlugin="false"   //This does not work
  • 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-28T05:38:47+00:00Added an answer on May 28, 2026 at 5:38 am

    As with many XUL tags, the <browser> tag isn’t inherently “special” – the “special” functionality is added by XBL. The important thing is that XBL bindings are added via CSS rules and for these CSS rules to apply the element has to be inserted into the document. So it is important to insert the element first and only access the special properties after that. Of course, in this case some asynchronous initialization might be required as well so you better do something like:

    var browser = document.createElement(browser);
    parent.appendChild(browser);
    window.setTimeout(initBrowser, 0);
    
    function initBrowser()
    {
      x.docShell.allowAuth = false;
      ...
      browser.loadURI("...", null, null);
    }
    

    Note that it’s docShell (your example used wrong captalization) and that allowAuth is a boolean, not a string.

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

Sidebar

Related Questions

In HTML5 there is a new input type, 'search'. On most browser it's just
MSDN gives the following Javascript code for querying the Bing Image Search API. It
A recorded test script includes a google search. After clicking on Google Search, the
I am tring to clean up url for my blog's search script using RewriteRule
I developed a browser-deployed full-text search app in FlashBuilder which communicates RESTfully with a
I am making a search query on local Apache Solr Server by browser and
I am trying to figure out how the search tool in a web browser
How to test my php search engine project ? Client side Minimum browser requirement
I'm building an autosuggest search, like apple's spotlight... and want to disable the browser
Everyone remembers google browser sync right? I thought it was great. Unfortunately Google decided

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.