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.
Hung Jury Could Lead to Clancy Retrial
Kirstie Sands
September 4, 2026
3:54 PM
8 SEO APIs That Hold Up in Production in 2026
Priya Nandakumar
September 4, 2026
3:19 PM
Apple Maps Renames Lake Ontario for Americans
Steve Gickling
September 4, 2026
2:53 PM
Company Issues Report on Rogue Technology
Deanna Ritchie
September 4, 2026
1:47 PM
Microsoft Disables Text Predictions by Default
Sumit Kumar
September 4, 2026
1:39 PM
Ox Alpha Fuels Online AI Speculation
Rashan Dixon
September 4, 2026
1:22 PM
Anthropic Brings Multiplayer AI to Slack
Rashan Dixon
September 4, 2026
12:11 PM
Gloria Steinem Dies at Age 92
Steve Gickling
September 4, 2026
12:01 PM
AI Model Hype Is Outrunning Real Value
Joe Rothwell
September 4, 2026
11:14 AM
AI Pushes Big Pharma to Rethink Outsourcing
Sumit Kumar
September 4, 2026
9:17 AM
What Is Data Analytics? A Clear Guide for Decision-Makers
Rashan Dixon
September 4, 2026
8:00 AM
China Expands Factory Robot Workforce Rapidly
Deanna Ritchie
September 3, 2026
4:31 PM
Third AI Hacking Disclosure Raises Security Concerns
Rashan Dixon
September 3, 2026
2:46 PM
The Poco F9 Ultra Makes Flagships Look Overpriced
Joe Rothwell
September 3, 2026
12:44 PM
Starbucks Cuts 224 More Seattle-Area Jobs
Sumit Kumar
September 3, 2026
12:27 PM
Bioconvergence Products Test Market Approval Rules
Sumit Kumar
September 3, 2026
11:39 AM
Ruling Raises Alarm Over Press Protections
Kirstie Sands
September 3, 2026
10:29 AM
Salesforce and Anthropic Launch Claudeforce
Rashan Dixon
September 3, 2026
9:15 AM
AI Boom Lifts Data Centre Suppliers
Steve Gickling
September 3, 2026
9:11 AM
How to Manage Technical Debt Before It Manages You
Rashan Dixon
September 3, 2026
8:00 AM
Adobe Expands Saudi AI Access Partnership
Sumit Kumar
September 2, 2026
4:39 PM
Groq Raises $350 Million in Series A
Sumit Kumar
September 2, 2026
4:39 PM
Apple Music Plans Labels for AI Songs
Kirstie Sands
September 2, 2026
3:55 PM
Engineering Leaders Target Runaway AI Coding Costs
Steve Gickling
September 2, 2026
2:30 PM
Testing an App on Devices You Cannot Change: Why a Few Passing Runs Prove Nothing
Priya Nandakumar
September 2, 2026
2:17 PM






















