Question

BlueRose Technologies
IN
Last activity: 27 Mar 2018 0:03 EDT
Javascript is not supported while generating PDF from HTML file
Hi All,
I have the below code in HTML rule and needs to get generated as Pdf using an activity. From the below code, everything is working as expected except <script> tag.
Appreciate your response in advance.
Code:
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Loops</h2>
<p id="demo"></p>
<script>
var text = "";
var i;
for (i = 0; i < 1; i++) {
text += "The number is " + i + "<br>";
}
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>
***Updated by moderator: Lochan to add Categories***