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.
Observability vs AI Observability: What Changes in Prod
Kirstie Sands
March 9, 2026
5:00 PM
Teens Turn to AI for Support
Rashan Dixon
March 9, 2026
4:26 PM
Capgemini Reviews Role In U.S. Surveillance
Steve Gickling
March 9, 2026
4:25 PM
Understanding Backpressure in Event-Driven Architectures
Steve Gickling
March 9, 2026
4:15 PM
How to Diagnose Slow Database Queries in Production
Sumit Kumar
March 9, 2026
4:15 PM
Patient Hails Success Of Milestone Procedure
Rashan Dixon
March 9, 2026
3:53 PM
How to Build Multi-Tenant Databases Safely
Rashan Dixon
March 9, 2026
3:45 PM
EPA Moves to Roll Back GHG Finding
Sumit Kumar
March 9, 2026
3:20 PM
When Tech Leaders Confuse Alignment with Consensus
Kirstie Sands
March 9, 2026
3:16 PM
Best SOC 2 Compliance Tools in 2026: Top Platforms Ranked
Rashan Dixon
March 9, 2026
3:11 PM
Iranian Drone Strikes Nakhchivan Airport
Kirstie Sands
March 9, 2026
2:07 PM
Study Finds Gaps In Chinese AI Responses
Steve Gickling
March 9, 2026
11:56 AM
Revel Raises $150 Million Series B
Sumit Kumar
March 9, 2026
10:52 AM
Cirencester Researchers Tout Eco Savings Claim
Deanna Ritchie
March 9, 2026
10:16 AM
Wireless Home Theater Finally Sounds Like Cinema
Joe Rothwell
March 9, 2026
7:18 AM



E-Ink Tablets Are The Focus We Need
Joe Rothwell
March 7, 2026
9:03 AM


7 Things Engineering Leaders Must Know Before Adding LLMs
Steve Gickling
March 6, 2026
9:47 PM


The Essential Guide to Data Modeling for High-Write Systems
Steve Gickling
March 6, 2026
9:35 PM


What Is Workload Isolation (And Why It Matters at Scale)
Rashan Dixon
March 6, 2026
9:26 PM


Hybrid Retrieval vs Vector Search: What Actually Works
Kirstie Sands
March 6, 2026
9:15 PM


5 Signals Your AI Evaluation Metrics Tell the Wrong Story
Sumit Kumar
March 6, 2026
9:06 PM
AI War Games Trigger Nuclear Responses
Deanna Ritchie
March 6, 2026
5:12 PM
UK Regulator Fines Reddit Over Children’s Data
Kirstie Sands
March 6, 2026
3:13 PM
AI Tool Records Medical Appointments Automatically
Steve Gickling
March 6, 2026
1:39 PM
Rethinking The Culture Of Convenience
Sumit Kumar
March 6, 2026
1:37 PM





