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.
Attempted Assassination Charge After WHCA Gunfire
Sumit Kumar
April 30, 2026
4:54 PM
Binance Co-Founder Sees World Cup Betting Lift
Sumit Kumar
April 30, 2026
3:44 PM
Bereaved Mother Urges PM To Hear Families
Steve Gickling
April 30, 2026
3:43 PM
UK Debates Its AI Path Forward
Deanna Ritchie
April 30, 2026
2:12 PM
Retro Tech Gains New Popularity Again
Rashan Dixon
April 30, 2026
2:05 PM
CS 153 Sparks Viral Campus Debate
Rashan Dixon
April 30, 2026
1:53 PM
AI Images Finally Became Actually Useful
Joe Rothwell
April 30, 2026
9:06 AM
Mississippi College Law Mandates AI Education
Kirstie Sands
April 29, 2026
4:37 PM
Anthropic Says Pentagon-Deployed AI Immutable
Rashan Dixon
April 29, 2026
3:07 PM
Black Forest Labs Targets Physical AI
Steve Gickling
April 29, 2026
2:06 PM
Suspect Charged in WHCA Shooting
Deanna Ritchie
April 29, 2026
12:30 PM
Ant Group Trims Paytm Holding Again
Sumit Kumar
April 29, 2026
12:01 PM
ICE Investment Lifts Polymarket to $9B
Sumit Kumar
April 29, 2026
11:23 AM
Big Tech Dominates Trump Investment Claim
Steve Gickling
April 29, 2026
10:34 AM
Moore’s Law Survives Only If Chemistry Leads
Joe Rothwell
April 29, 2026
8:40 AM
Security Scrutiny After Near Trump Attack
Kirstie Sands
April 28, 2026
3:44 PM
Trump Halts Islamabad Delegation For Iran Talks
Rashan Dixon
April 28, 2026
3:30 PM
Google TV Adds Gemini AI Features
Deanna Ritchie
April 28, 2026
1:36 PM
Intel Forecast Lifts U.S. Chip Stocks
Steve Gickling
April 28, 2026
12:51 PM
From Grid to Growth: Electric Vehicles, Clean Energy, and the New Era of Energy Management
Johannah Lopez
April 28, 2026
12:38 PM
AI Progress Is Real, Hype Is Optional
Joe Rothwell
April 28, 2026
11:44 AM
Prediction Markets Collide With Layoff Watch
Steve Gickling
April 28, 2026
10:58 AM
Traza Raises $2.1 Million For AI Agents
Rashan Dixon
April 28, 2026
10:56 AM
Better Money Company Announces Crypto Partnerships
Sumit Kumar
April 28, 2026
10:29 AM
MIT Names 2026 Edgerton Award Winners
Sumit Kumar
April 28, 2026
9:34 AM





















