I have the following javascript. How do I accomplish the same thing in OmniWeb?
Code:
tell application "Safari" set myURL to URL of document 1 set myTitle to do JavaScript "document.title" in document 1 set mySelection to do JavaScript "window.getSelection() + ''" in document 1 end tell