[pdftex] prompt in insdljs-package, question from a beginner

TW Ma twma at maths.uwa.edu.au
Fri Mar 12 04:48:35 CET 2004

The following JavaScript in HTML-file located at 
is working well. I try to convert it into Latex by insdljs-package.

AA-message appears but the rest of JS-script is skipped.

I replace the line 
         yourText=app.prompt("Type in something","*here*");
by       yourText=    prompt("Type in something","*here*");
it still does not work. Be grateful if somebody can help. 

Thank you in advance.  T-W Ma,  twma at maths.uwa.edu.au

----------------- Listing of all my files  -----------------

produces          https://www.maths.uwa.edu.au/~twma/xyz/jsLa.pdf 
successfully by miktex on PC.

\OpenAction{/S /JavaScript /JS (
var yourText;
yourText=app.prompt("Type in something","*here*");  %% this is the problem
app.alert ("what you type is "+yourText);  
                        %% works as expected if delete the above two lines
app.alert ( "End of JS-script") ;

Testing JS-scripts in Latex.

<SCRIPT Language="JavaScript">
var yourText;
yourText=prompt("Type in something","*here*")
alert ("what you type is "+yourText);
alert ( "End of JS-script") ;


More information about the pdftex mailing list