Question
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***
hello,
looks like script is working fine, I just tried the below code by printing a simple string
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Loops</h2>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = "pega";
</script>
</body>
</html>