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

  • Home
  • SEARCH
  • 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 8995973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:41:28+00:00 2026-06-15T23:41:28+00:00

I have opened a new window with the code: w = window.open(, ventana, status=1,width=350,height=150);

  • 0

I have opened a new window with the code:

w = window.open("", "ventana", "status=1,width=350,height=150");

And there I created a table with

var tresumen = w.document.createElement("table");

and so on, and so on…

Everything works fine, but when it comes to apply CSS, I am finding that the new window is not reading the separate css file that I have referenced from the main html. In the CSS I have some lines for table like this:

table {
        some attributes here;
}

The only way I can think about to make the new window read the CSS, is to put a document.write inside the javascript of the new window, putting there the html code to reference (again) the css file, but since it’s already referenced in the main html, I don’t see why that would be a proper way…

What is my mistake here?

How can I make a new window (without its own html!) read the CSS that the main window is using?

Thanks!

  • 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-15T23:41:29+00:00Added an answer on June 15, 2026 at 11:41 pm

    Without an actual HTML document loaded or generated inside the new window, you’re relying on browsers’ tag-soup interpretation to make sense of your markup.

    That said, you’d have to append a style or link element to that window’s DOM which refers to your external stylesheet.

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

Sidebar

Related Questions

I have opened a new window with JavaScript: var newwin = window.open('','preview','width=600,height=500'); Now I
i have opened fancy box with following code $(#tip5).fancybox({ 'width': 400, 'height': 370, 'enableEscapeButton'
I have the code below to open a new window whenever user presses F2
Basically, I have a gridview that is opened in a new window from the
I have used a js code to open a hyper link in a new
I have some simple lines of code: that.click(function(){ window.open($('.linkBox input').val()); }); Assuming I'm redirecting
My app have Preferences window. I open it using this code - (IBAction)openPreferences:(id)sender {
I have a page which open a new window with External Url (Twitter Authentication
I have opened a sample ASP.NET MVC project. In HomeController I have created a
I am new to VSTO programming. I have created a basic addin for Outlook

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.