Question:
I am trying to use document.writeln to write a table onto a floating menu bar. Part of the table cell’s events is Java code. When it reaches the semicolons in the code for the table, it thinks it is the end of the line. How can I pass semicolons in document.writeln so JavaScript knows it’s not at the end?
document.writeln ('
Answer:
The semicolons aren't the object that's causing you trouble if I'm reading your code correctly?you're mixing single and double quotes in a nested fashion. This is okay, but you're enclosing single quotes in double quotes and then, again, in single quotes. The inner single quotes are being treated as the end of the string.
Instead of this code:
String = ' outer = " inner ' really inner' " ';
Try:
String = ' outer = " inner ' really inner' " ';
The JavaScript engine knows to treat the quote following the backslash as a literal value rather than to interpret it as the end of the string.
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.
Related Posts
About Our Editorial Process
At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.
See our full editorial policy.
Why Operational Efficiency Is the New Competitive Advantage
Priya Nandakumar
August 11, 2026
4:51 PM
Blackstone Unit in Talks With TXNM
Sumit Kumar
August 11, 2026
4:36 PM
Researcher Tests AI-Assisted Hacking Limits
Rashan Dixon
August 11, 2026
12:36 PM
Congresswoman Shares Journey, Criticizes Trump Policies
Kirstie Sands
August 11, 2026
10:24 AM
Microsoft Launches New In-House AI Models
Rashan Dixon
August 11, 2026
9:46 AM
Stop Assuming Online Videos Are Real Anymore
Joe Rothwell
August 11, 2026
8:58 AM
LLM vs Generative AI: Clearing Up the Confusion
Rashan Dixon
August 11, 2026
8:00 AM
When the Machines Grade the Machines
Marcus Whitfield
August 10, 2026
3:07 PM
Reducing Operational Complexity With Smarter Logistics
Priya Nandakumar
August 10, 2026
2:44 PM
Police Probe Motive After Deadly Shooting
Steve Gickling
August 10, 2026
1:19 PM
Why Japanese Strategic LPs Seek Startups
Sumit Kumar
August 10, 2026
1:15 PM
Smart Feeder Brings Backyard Wildlife To Phones
Rashan Dixon
August 10, 2026
1:06 PM
Maono Targets Safer Desktop Recording Sessions
Sumit Kumar
August 10, 2026
10:24 AM
Muse Code Default Sends Data to Meta
Steve Gickling
August 10, 2026
10:13 AM
Electronic Arts Going Private In Debt Deal
Deanna Ritchie
August 10, 2026
10:10 AM
Tech Roundup: OpenAI Hack, Policy, Light Flip
Kirstie Sands
August 10, 2026
9:20 AM
Generative AI for Marketing: A Practical Guide That Works
Rashan Dixon
August 10, 2026
8:00 AM
Generative AI vs Predictive AI: How to Choose the Right Tool
Rashan Dixon
August 9, 2026
8:00 AM
Gaming Tablets Are the Real Portable Consoles
Joe Rothwell
August 8, 2026
12:39 PM
How Generative AI for Software Development Is Changing the Craft
Rashan Dixon
August 8, 2026
8:00 AM
Trump Administration Briefs AI Labs Privately
Sumit Kumar
August 7, 2026
4:52 PM
Zenity Raises $125 Million Series C
Sumit Kumar
August 7, 2026
4:21 PM
How to Triage SAST Findings Like Technical Debt
Marcus Whitfield
August 7, 2026
3:47 PM
Grok Build Adds Parallel Workflow Orchestration
Steve Gickling
August 7, 2026
3:22 PM
Flock Safety CEO Faces Privacy Questions
Deanna Ritchie
August 7, 2026
1:50 PM






















