After searching for days I found the answer

/ hidden away in the internet TUT!.
For anyone else who has this problem its:
put revBrowserOpenCef(the windowId of this stack, "c:\test.html") into tBrowserID
revBrowserSet tBrowserID, "rect", the rect of graphic "browserPlaceholder"
revBrowserAddJavaScriptHandler tBrowserID, "browserButtonClick" ---- This line here that is the answer sets up livecode to listen for javascript calls
------------------------------
~Then in your HTML page this function will send the data to livecode
function test() {
liveCode.browserButtonClick("Hello, world!");
}