top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Html javascript code for screen capture?

+1 vote
430 views

I want the javascript API which could capture the screen of the client. Does anyone knows about it?

posted Apr 22, 2016 by Sahil Alipuria

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Use HTML2canvas from the following link

https://github.com/niklasvh/html2canvas

answer Apr 22, 2016 by Salil Agrawal
Similar Questions
0 votes

<?xml version="1.0" encoding="utf-8" ?>
Assignment 2

var count;
// the number of value that you want to check if number or no
count=window.prompt("please enter value for count ");
var c;
c=parseInt(count);
if(!isNaN(c))
window.alert("The Value Is Number ! ");
else
{
window.alert("SorrY . The Value is Not Number (NaN ) ");
c=window.prompt(" NOT NUMBER ! \n please enter value for count ");
}
while(c<0)
{
c=window.prompt(" NEGATIVE NUMBER ! \n please enter value for count ");
if(!isNaN(c))
window.alert("The Value Is Number ! ");
else
{
window.alert("SorrY . The Value is Not Number (NaN ) ");
c=window.prompt(" NOT NUMBER ! \n please enter value for count ");
window.alert(" POSITIVE NUMBER ");
}}
document.writeln("GooD . The Value is Positive ");

+2 votes

My project's UI using both HTML and applet.
when the javascript function "saveSessionAs()" that has the following statement, getting called from the HTML the popup window flickers.

value = window.showModalDialog(ContextPath  + "/jsp/choosepath_frames.jsp", args, "dialogHeight:"+dlg_height+"px;dialogWidth:550px;help:no;scroll:no;status:no");

while the same function called from the applet using the statement

ReportApplet.getJSObject().call("saveSessionAs");

Then its working fine. It does not flicker.

So my doubt is, why the same function's behaviour is different??
And how that can we fixed??

...