javascript - Send user to a new page via JS -


we submitting data , showing result in a alert box, want send user page(response.php?r=result) instead of showing alert.

the code using below

function (result) {                      settimeout(function() {                         alert("we got barcode\n" +                               "result: " + result.text + "\n" +                               "format: " + result.format + "\n" +                               "cancelled: " + result.cancelled);                                                 }, 0);                 },   

many in advanced help

how that

location.href = 'response.php?r=' + json.stringify(result); 

?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -