SlideShare a Scribd company logo
1 of 1
Download to read offline
How do I change this javascript code so that the new page opens up blue?
function showWin() {
myWindow = window.open("","width=2000,height=2000"); //can't get this page to open up
blue
myWindow.document.write(page);
}
Solution
If we have a HTML like below:
// showWin() is used to open a new window on click of the button "Show"
So the javascript function goes like:

More Related Content

More from info706022

genetics q If the offspring of a dihydric testcross are roughly 50 .pdf
genetics q If the offspring of a dihydric testcross are roughly 50 .pdfgenetics q If the offspring of a dihydric testcross are roughly 50 .pdf
genetics q If the offspring of a dihydric testcross are roughly 50 .pdfinfo706022
 
for fiscal year 2006, the national debt of a country was approximate.pdf
for fiscal year 2006, the national debt of a country was approximate.pdffor fiscal year 2006, the national debt of a country was approximate.pdf
for fiscal year 2006, the national debt of a country was approximate.pdfinfo706022
 
Explain why Linux makes system performance monitoring available to t.pdf
Explain why Linux makes system performance monitoring available to t.pdfExplain why Linux makes system performance monitoring available to t.pdf
Explain why Linux makes system performance monitoring available to t.pdfinfo706022
 
Discuss the relationships between competitive avantage, istinctive c.pdf
Discuss the relationships between competitive avantage, istinctive c.pdfDiscuss the relationships between competitive avantage, istinctive c.pdf
Discuss the relationships between competitive avantage, istinctive c.pdfinfo706022
 
Determine the intervals of the domain over which each function is.pdf
Determine the intervals of the domain over which each function is.pdfDetermine the intervals of the domain over which each function is.pdf
Determine the intervals of the domain over which each function is.pdfinfo706022
 
A storage reservoir contains 200 kg of a liquid that has a specific .pdf
A storage reservoir contains 200 kg of a liquid that has a specific .pdfA storage reservoir contains 200 kg of a liquid that has a specific .pdf
A storage reservoir contains 200 kg of a liquid that has a specific .pdfinfo706022
 
4. Define modal split model transportation demand . central vision .pdf
4. Define modal split model transportation demand . central vision .pdf4. Define modal split model transportation demand . central vision .pdf
4. Define modal split model transportation demand . central vision .pdfinfo706022
 
Comparison of dysplasia and hyperplasiaSolutionDysplasia Dys.pdf
Comparison of dysplasia and hyperplasiaSolutionDysplasia Dys.pdfComparison of dysplasia and hyperplasiaSolutionDysplasia Dys.pdf
Comparison of dysplasia and hyperplasiaSolutionDysplasia Dys.pdfinfo706022
 
“Web 2.0 is simply a new label for a range of web technologies and c.pdf
“Web 2.0 is simply a new label for a range of web technologies and c.pdf“Web 2.0 is simply a new label for a range of web technologies and c.pdf
“Web 2.0 is simply a new label for a range of web technologies and c.pdfinfo706022
 
You are required, but not limited, to turn in the following source f.pdf
You are required, but not limited, to turn in the following source f.pdfYou are required, but not limited, to turn in the following source f.pdf
You are required, but not limited, to turn in the following source f.pdfinfo706022
 
Write a function to merge two doubly linked lists. The input lists ha.pdf
Write a function to merge two doubly linked lists. The input lists ha.pdfWrite a function to merge two doubly linked lists. The input lists ha.pdf
Write a function to merge two doubly linked lists. The input lists ha.pdfinfo706022
 
Why just one sperm can enter the secondary oocyteWhy just one s.pdf
Why just one sperm can enter the secondary oocyteWhy just one s.pdfWhy just one sperm can enter the secondary oocyteWhy just one s.pdf
Why just one sperm can enter the secondary oocyteWhy just one s.pdfinfo706022
 
Which plants produce multiple sporangia (Select all that apply.) Ga.pdf
Which plants produce multiple sporangia (Select all that apply.)  Ga.pdfWhich plants produce multiple sporangia (Select all that apply.)  Ga.pdf
Which plants produce multiple sporangia (Select all that apply.) Ga.pdfinfo706022
 
what is economicsSolutionEconomics is the study of people in.pdf
what is economicsSolutionEconomics is the study of people in.pdfwhat is economicsSolutionEconomics is the study of people in.pdf
what is economicsSolutionEconomics is the study of people in.pdfinfo706022
 
What are the functions of database management software (DBMS) Name .pdf
What are the functions of database management software (DBMS) Name .pdfWhat are the functions of database management software (DBMS) Name .pdf
What are the functions of database management software (DBMS) Name .pdfinfo706022
 
Two proteins, HU and H-NS (Histone-like Nucleoid Structuring), are fo.pdf
Two proteins, HU and H-NS (Histone-like Nucleoid Structuring), are fo.pdfTwo proteins, HU and H-NS (Histone-like Nucleoid Structuring), are fo.pdf
Two proteins, HU and H-NS (Histone-like Nucleoid Structuring), are fo.pdfinfo706022
 
The phylogenetic distribution of multicellular organisms indicates t.pdf
The phylogenetic distribution of multicellular organisms indicates t.pdfThe phylogenetic distribution of multicellular organisms indicates t.pdf
The phylogenetic distribution of multicellular organisms indicates t.pdfinfo706022
 
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdfTask #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdfinfo706022
 
1 group SIV- chimpanzee V- 1 SIV. chimpanzee SIV- chimpanzee L SIV- c.pdf
1 group SIV- chimpanzee V- 1 SIV. chimpanzee SIV- chimpanzee L SIV- c.pdf1 group SIV- chimpanzee V- 1 SIV. chimpanzee SIV- chimpanzee L SIV- c.pdf
1 group SIV- chimpanzee V- 1 SIV. chimpanzee SIV- chimpanzee L SIV- c.pdfinfo706022
 
Richards has filed quarterly reports to the SEC based on information.pdf
Richards has filed quarterly reports to the SEC based on information.pdfRichards has filed quarterly reports to the SEC based on information.pdf
Richards has filed quarterly reports to the SEC based on information.pdfinfo706022
 

More from info706022 (20)

genetics q If the offspring of a dihydric testcross are roughly 50 .pdf
genetics q If the offspring of a dihydric testcross are roughly 50 .pdfgenetics q If the offspring of a dihydric testcross are roughly 50 .pdf
genetics q If the offspring of a dihydric testcross are roughly 50 .pdf
 
for fiscal year 2006, the national debt of a country was approximate.pdf
for fiscal year 2006, the national debt of a country was approximate.pdffor fiscal year 2006, the national debt of a country was approximate.pdf
for fiscal year 2006, the national debt of a country was approximate.pdf
 
Explain why Linux makes system performance monitoring available to t.pdf
Explain why Linux makes system performance monitoring available to t.pdfExplain why Linux makes system performance monitoring available to t.pdf
Explain why Linux makes system performance monitoring available to t.pdf
 
Discuss the relationships between competitive avantage, istinctive c.pdf
Discuss the relationships between competitive avantage, istinctive c.pdfDiscuss the relationships between competitive avantage, istinctive c.pdf
Discuss the relationships between competitive avantage, istinctive c.pdf
 
Determine the intervals of the domain over which each function is.pdf
Determine the intervals of the domain over which each function is.pdfDetermine the intervals of the domain over which each function is.pdf
Determine the intervals of the domain over which each function is.pdf
 
A storage reservoir contains 200 kg of a liquid that has a specific .pdf
A storage reservoir contains 200 kg of a liquid that has a specific .pdfA storage reservoir contains 200 kg of a liquid that has a specific .pdf
A storage reservoir contains 200 kg of a liquid that has a specific .pdf
 
4. Define modal split model transportation demand . central vision .pdf
4. Define modal split model transportation demand . central vision .pdf4. Define modal split model transportation demand . central vision .pdf
4. Define modal split model transportation demand . central vision .pdf
 
Comparison of dysplasia and hyperplasiaSolutionDysplasia Dys.pdf
Comparison of dysplasia and hyperplasiaSolutionDysplasia Dys.pdfComparison of dysplasia and hyperplasiaSolutionDysplasia Dys.pdf
Comparison of dysplasia and hyperplasiaSolutionDysplasia Dys.pdf
 
“Web 2.0 is simply a new label for a range of web technologies and c.pdf
“Web 2.0 is simply a new label for a range of web technologies and c.pdf“Web 2.0 is simply a new label for a range of web technologies and c.pdf
“Web 2.0 is simply a new label for a range of web technologies and c.pdf
 
You are required, but not limited, to turn in the following source f.pdf
You are required, but not limited, to turn in the following source f.pdfYou are required, but not limited, to turn in the following source f.pdf
You are required, but not limited, to turn in the following source f.pdf
 
Write a function to merge two doubly linked lists. The input lists ha.pdf
Write a function to merge two doubly linked lists. The input lists ha.pdfWrite a function to merge two doubly linked lists. The input lists ha.pdf
Write a function to merge two doubly linked lists. The input lists ha.pdf
 
Why just one sperm can enter the secondary oocyteWhy just one s.pdf
Why just one sperm can enter the secondary oocyteWhy just one s.pdfWhy just one sperm can enter the secondary oocyteWhy just one s.pdf
Why just one sperm can enter the secondary oocyteWhy just one s.pdf
 
Which plants produce multiple sporangia (Select all that apply.) Ga.pdf
Which plants produce multiple sporangia (Select all that apply.)  Ga.pdfWhich plants produce multiple sporangia (Select all that apply.)  Ga.pdf
Which plants produce multiple sporangia (Select all that apply.) Ga.pdf
 
what is economicsSolutionEconomics is the study of people in.pdf
what is economicsSolutionEconomics is the study of people in.pdfwhat is economicsSolutionEconomics is the study of people in.pdf
what is economicsSolutionEconomics is the study of people in.pdf
 
What are the functions of database management software (DBMS) Name .pdf
What are the functions of database management software (DBMS) Name .pdfWhat are the functions of database management software (DBMS) Name .pdf
What are the functions of database management software (DBMS) Name .pdf
 
Two proteins, HU and H-NS (Histone-like Nucleoid Structuring), are fo.pdf
Two proteins, HU and H-NS (Histone-like Nucleoid Structuring), are fo.pdfTwo proteins, HU and H-NS (Histone-like Nucleoid Structuring), are fo.pdf
Two proteins, HU and H-NS (Histone-like Nucleoid Structuring), are fo.pdf
 
The phylogenetic distribution of multicellular organisms indicates t.pdf
The phylogenetic distribution of multicellular organisms indicates t.pdfThe phylogenetic distribution of multicellular organisms indicates t.pdf
The phylogenetic distribution of multicellular organisms indicates t.pdf
 
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdfTask #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
 
1 group SIV- chimpanzee V- 1 SIV. chimpanzee SIV- chimpanzee L SIV- c.pdf
1 group SIV- chimpanzee V- 1 SIV. chimpanzee SIV- chimpanzee L SIV- c.pdf1 group SIV- chimpanzee V- 1 SIV. chimpanzee SIV- chimpanzee L SIV- c.pdf
1 group SIV- chimpanzee V- 1 SIV. chimpanzee SIV- chimpanzee L SIV- c.pdf
 
Richards has filed quarterly reports to the SEC based on information.pdf
Richards has filed quarterly reports to the SEC based on information.pdfRichards has filed quarterly reports to the SEC based on information.pdf
Richards has filed quarterly reports to the SEC based on information.pdf
 

Recently uploaded

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 

Recently uploaded (20)

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 

How do I change this javascript code so that the new page opens up b.pdf

  • 1. How do I change this javascript code so that the new page opens up blue? function showWin() { myWindow = window.open("","width=2000,height=2000"); //can't get this page to open up blue myWindow.document.write(page); } Solution If we have a HTML like below: // showWin() is used to open a new window on click of the button "Show" So the javascript function goes like: