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.
Venture Capital Journal Targets Investor Edge
Sumit Kumar
April 3, 2026
3:58 PM
Firm Claims Major Chip Design Savings
Rashan Dixon
April 3, 2026
3:20 PM
IATA Chief Walsh To Join Indian Airline
Rashan Dixon
April 3, 2026
2:50 PM
President Warns Allies Over Hormuz Standoff
Steve Gickling
April 3, 2026
2:48 PM
VisiPrint Promises Accurate 3D Print Previews
Deanna Ritchie
April 3, 2026
2:01 PM
Trump To Deliver Iran Update Tonight
Kirstie Sands
April 3, 2026
1:08 PM
Capacity Planning for Fast-Growing Applications
Editor
April 3, 2026
11:31 AM
Why Infrastructure Planning Matters More Than Ever for Growing Software Products
Jordan Williams
April 3, 2026
11:30 AM
What Leaders Really Listen For in Tech Recommendations
Sumit Kumar
April 3, 2026
11:30 AM
Seven Latency Signals Your Architecture Will Break at Scale
Sumit Kumar
April 3, 2026
10:53 AM
Are $90 PS5 Faceplates Worth It
Sumit Kumar
April 3, 2026
10:49 AM
Trump Accelerates Nuclear Rule Changes
Steve Gickling
April 3, 2026
10:05 AM
Chatbot Query Preceded Railway Death
Rashan Dixon
April 2, 2026
5:06 PM
Seven Debugging Patterns That Expose Architecture
Steve Gickling
April 2, 2026
3:30 PM
How to Build Sustainable On-Call Rotations (Without Burnout)
Rashan Dixon
April 2, 2026
2:17 PM
AI Tool Speeds Housing Site Selection
Sumit Kumar
April 2, 2026
1:10 PM
When to Adopt Emerging Tech vs When to Wait
Kirstie Sands
April 2, 2026
1:08 PM
FTC Warns Apple Over Apple News
Rashan Dixon
April 2, 2026
1:03 PM
NoTraffic Raises $90 Million Series C
Sumit Kumar
April 2, 2026
12:55 PM
AI Agents Redefine How Software Is Built
Kirstie Sands
April 2, 2026
11:04 AM
Align Tech Investments With Architecture Roadmaps
Sumit Kumar
April 2, 2026
11:00 AM
Verge Tech Pitches Daily Technology Coverage
Deanna Ritchie
April 2, 2026
10:35 AM
Hidden Role of Dependency Graphs In System Latency
Steve Gickling
April 2, 2026
9:51 AM
AI Shifts To Many Bounded Agents
Steve Gickling
April 2, 2026
9:39 AM
Young Workers Reconsider Skilled Trades
Steve Gickling
April 2, 2026
9:05 AM





















