HTML

From NSB App Studio
Revision as of 12:54, 5 July 2012 by Brendon (talk | contribs) (Created page with "HTML <br /> :::[''statements''] <br /> END HTML '''Description''' The HTML statement allows you to ember pure HTML in your NS Basic/X program. This allows you to have additi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

HTML

[statements]

END HTML

Description

The HTML statement allows you to ember pure HTML in your NS Basic/X program. This allows you to have additional functionality to your app. Statements within this block must follow all HTML rules. They are ignored by NS Basic/X itself. For more information, see the Tech Note ‘The role of JavaScript and WebKit’.

Example

'This sample shows how to add a button at runtime.
 
HTML
  <button onmousedown="button1()">Button 1</button>
  <div id="box">Box</div>
End HTML
 
Function button1()
  box.innerHTML= event.screenX & ", " & event.screenY
End Function

Output

(a button and a box are displayed. Click the button and text is put in the box)

Related Items

JAVASCRIPT