views:

12

answers:

1

hi

in javascript i can call prompt like this var retVal = prompt("Enter the new first name : ");

how can i call same prompt in rjs file

i used, page.prompt("Enter the new first name : ")

and its not working

A: 
page << "prompt('Enter the new first name:');"
Matt Huggins
thanks its working
nirmal
how can i get the value entered in text boxi used, value = page << "prompt('Enter the new first name:');" page.alert(value)i dont get the value
nirmal
`page << "var response = prompt('Enter the new first name:');"` then you can do `page << "alert(response);"`
Matt Huggins