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.
Light Phone Champions Minimal Use Philosophy
Deanna Ritchie
June 23, 2026
3:54 PM
Mexico Edges South Korea, Leads Group A
Rashan Dixon
June 23, 2026
3:12 PM
Securing the Connections Between AI Agents, Tools, and Data
Noah Nguyen
June 23, 2026
1:53 PM
Q-Day Nears As Readiness Lags
Kirstie Sands
June 23, 2026
1:50 PM
New Online Rules Target Youth Safety
Steve Gickling
June 23, 2026
1:22 PM
MIT Launches PATH for AI Workforce
Steve Gickling
June 23, 2026
12:01 PM
Flux Raises $5 Million for Engineering Intelligence
Sumit Kumar
June 23, 2026
11:48 AM
Summer Solstice Arrives This Sunday
Sumit Kumar
June 23, 2026
11:21 AM
AI Safety Shouldn’t Mean Hitting the Kill Switch
Joe Rothwell
June 23, 2026
9:33 AM
Guardrails Launches Populist AI Political Movement
Sumit Kumar
June 22, 2026
4:45 PM
Europe Seeks New Energy and Trade Routes
Steve Gickling
June 22, 2026
3:50 PM
U.S. Entrepreneurs Struggle To Outearn Parents
Deanna Ritchie
June 22, 2026
12:01 PM
Why Big-Battery Phones Finally Make Sense
Joe Rothwell
June 20, 2026
10:37 AM
The State of DevSecOps 2026: Shifting Security Left in the AI Age
Rashan Dixon
June 20, 2026
9:23 AM
Mistral AI Launches Vibe, Targets Industry
Sumit Kumar
June 19, 2026
3:49 PM
Colbert Ends Tenure With Musical Jab
Deanna Ritchie
June 19, 2026
2:31 PM
Stratofortress Crash Kills Eight in California
Kirstie Sands
June 19, 2026
1:08 PM
AI-Native Applications: Designing Software That Learns Continuously
Rashan Dixon
June 19, 2026
11:14 AM
Amazon And Meta Lead Tech Rally
Rashan Dixon
June 19, 2026
10:38 AM
Bear Stalking Prompts Mount Si Closure
Steve Gickling
June 19, 2026
10:21 AM
SpaceX Adds Ex-Sequoia Leader to Board
Sumit Kumar
June 19, 2026
10:03 AM
How Specialized Engineering Talent Helps Modern Tech Companies Build Better Products
Kyle Lewis
June 19, 2026
9:10 AM
Local AI Is Ready—But Not For Everyone
Joe Rothwell
June 19, 2026
6:00 AM
Index Hopes Fuel Pre-Inclusion Stock Surge
Rashan Dixon
June 18, 2026
3:28 PM
New Fix Targets AI Chatbot Freezes
Steve Gickling
June 18, 2026
2:26 PM



















