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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:56:10+00:00 2026-05-30T12:56:10+00:00

Hey guys i’m trying to create a window which opens up when i click

  • 0

Hey guys i’m trying to create a window which opens up when i click a particular numbers of a table column in the main document and corresponding to that the rows in that column open up in a different window. The script to delete the rows in the main document is working but the same script does not seem to work in the window that opens up. I dont know what the problem is.Please help me out here.Thanks.

 Window = window.open('','W1','width=700,height=500');
//Window.document.write("<style type='text/css'>table,th,tr{ cellspacing=0;border-    collapse:collapse;border-radius:5px;-moz-border-radius:5px;}</style>");

Window.document.write('<table id="T1" border="1" ><th width="60">S,no.</th><th  width="110">Name</th><th width="110">Op Name</th><th width="110">ID</th><th width="110">Synonym record numbers</th><th width="60">Total Duplicity weight</th><th></th></table>');
 Window.document.write("<button type=\"button\" value=\"delal\" id=\"delal\" name=\"delal\" onclick=\"delall()\">Delete checked</button>");
 Window.document.getElementById("T1").style.borderCollapse="collapse";
 Window.document.getElementById("T1").style.padding="5";
 Window.document.getElementById("T1").style.backgroundColor="#E0C77A";
 Window.document.getElementById('T1').innerHTML += F+M;
Window.document.write('<script type="text/javascript">function deleteRow1(i)  {if(confirm("Confirm to Delete??")document.getElementById("T1").deleteRow(i);}function delall(){if(confirm("Are you sure you want to delete the selected rows?")){crows=document.getElementsByName("delcheck");for (i = 0; i<crows.length;i++){if(crows[i].checked){document.getElementById("T1").deleteRow(crows[i].parentNode.parentNode.rowIndex);i--;}}}</script>');
  • 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-30T12:56:11+00:00Added an answer on May 30, 2026 at 12:56 pm

    Debugged last line:

    Window.document.write('<script type="text/javascript">function deleteRow1(i)  {if(confirm("Confirm to Delete??"))document.getElementById("T1").deleteRow(i);}function delall(){if(confirm("Are you sure you want to delete the selected rows?")){crows=document.getElementsByName("delcheck");for (i = 0; i<crows.length;i++){if(crows[i].checked){document.getElementById("T1").deleteRow(crows[i].parentNode.parentNode.rowIndex);i--;}}}}<\/script>');
    

    Notice also JamieJag’s answer, and my comment to that answer. That means, that you have to build up the whole HTML-page by script, using closing tags too. And when you have the stylesheet, you can also remove all inner style settings, and also put in the document.write the ìnnerHTML. These are not going to work anyway during page parsing.

    Finally add the last line to the script: Window.document.close();

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

Sidebar

Related Questions

hey guys I have the follow code in js: $(document).ready(function(){ $(.replyLink).click(function(){ $(#form-to-+this.id).html(htmlForm()).toggle(500); return false;
Hey guys I am struggling to create a query which gives schedule of a
Hey guys i wrote a quick test. I want delete to call deleteMe which
Hey guys i am trying to automate my system at work for sending artwork
Hey guys I'm trying to add the string 'url( ) ' around my a
Hey guys, I'm trying to get my head around LINQ and FP, so forgive
Hey guys I'm creating a quick mysql file to create a DB with some
Hey guys I can't seem to get the syntax here right, I'm just trying
Hey guys! I have this little problem: I have one ViewController which adds 2
Hey guys, I have a problem (again). This time I am trying to use

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.