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....



Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: