Rommel Paras
Posts: 0
Joined: Fri Jun 14, 2013 2:58 am

Embedding HTML code in JavaScript

I have this custom JavaScript markup which stores html code in a variable, e.g.
var markup = 'Hello World!';

The markup code will be longer than that (like an actual page). I know a panel can store html code but if I want to access the HTML code and store it in a JS variable, how do I do it - a panel, a javascript file, any other option?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Embedding HTML code in JavaScript

I'm not sure I understand this:
[quote:]
The markup code will be longer than that (like an actual page).
[/quote]

Return to “Issues”