Hacker News new | past | comments | ask | show | jobs | submit login

You can call js directly using dynamic. From the docs[1]:

    val document = js.Dynamic.global.document
    val playground = document.getElementById("playground")
    val newP = document.createElement("p")
    newP.innerHTML = "Hello world! <i>-- DOM</i>"
    playground.appendChild(newP)

1. http://ochrons.github.io/sjs2/doc/interoperability/calling_j....



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: