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.
What Is GitHub Copilot Fusion? GitHub’s New Multi-Model Coding System Explained
Deanna Ritchie
October 30, 2026
7:20 AM
The 800ms Problem: Where Voice Agent Latency Actually Hides
Rashan Dixon
October 29, 2026
3:33 PM
What Is the Cloudflare KV Cache Leak? GLM-5.3 Bug Explained
Steve Gickling
October 29, 2026
8:13 AM
Leveraging Model Context Protocol (MCP) & Cursor for Faster Payment Gateway Integration
Rashan Dixon
October 28, 2026
3:50 PM
What Is the Next.js RCE Vulnerability in Image Optimization?
Rashan Dixon
October 28, 2026
1:30 PM
What Is the Node2Shell Vulnerability in Node.js?
John Rampton
October 27, 2026
8:04 AM
What Is the OpenCode Breach? Distillation Attack Explained
Deanna Ritchie
October 26, 2026
7:44 AM
What Is GitHub Copilot Computer Use? GitHub’s New Desktop Agent Explained
Rashan Dixon
October 23, 2026
8:08 AM
The SaaS Release Bottleneck: Why Faster Development Doesn’t Always Mean Faster Delivery
Rashan Dixon
October 22, 2026
3:41 PM
Choosing an Online Graduate Program: Accreditation, Flexibility, Support and What You Should Know.Â
John Rampton
October 22, 2026
3:08 PM
What Is SlugFest, the npm Trusted Publishing Vulnerability?
Deanna Ritchie
October 22, 2026
1:00 PM
What Is VS Code Agent Sandboxing? Microsoft’s New AI Agent Security Layer Explained
Steve Gickling
October 21, 2026
12:44 PM
Meta Muse Wonder: Pricing, Benchmarks, and What It Means for Developers
Rashan Dixon
October 20, 2026
7:56 AM
What Are GitHub Actions Workflow Lockfiles?
Deanna Ritchie
October 19, 2026
9:52 AM
What Is Grok Voice 3.0? xAI’s New Speech-to-Speech Model Explained
Steve Gickling
October 16, 2026
10:27 AM
Google’s Gemini Argon Wins Through Reach, Not Revolution
Joe Rothwell
October 15, 2026
10:50 AM
What Is the GhostApproval Vulnerability in AI Coding Assistants?
Johannah Lopez
October 15, 2026
8:09 AM
Startup Challenges DoorDash With $1 Delivery Fee
Steve Gickling
October 14, 2026
4:01 PM
AI Insiders Urge New York Oversight
Sumit Kumar
October 14, 2026
3:03 PM
Pro-AI Political Group Builds Bipartisan War Chest
Steve Gickling
October 14, 2026
1:36 PM
Prysm Capital Leader Links Parenting to Investing
Sumit Kumar
October 14, 2026
11:43 AM
McDonald’s Faces Antitrust Suit Over AI Pricing
Rashan Dixon
October 14, 2026
11:11 AM
OpenAI Addresses Australian Health Site Hack Probe
Rashan Dixon
October 14, 2026
11:04 AM
Industry Leaders Sign White House AI Accord
Kirstie Sands
October 14, 2026
10:37 AM
What Is the AgentCorruption Vulnerability in AWS AgentCore?
Priya Nandakumar
October 14, 2026
7:39 AM























