HTML: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
== Description ==
== 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 Htnl rules. They are ignored by NS Basic/X  itself. For more information, see the Tech Note ‘The role of JavaScript and WebKit’.
The HTML statement allows you to ember pure HTML in your ap. This allows you to have additional functionality to your app. Statements within this block must follow all HTML rules. They are ignored by App Studio itself. For more information, see the Tech Note ‘The role of JavaScript and WebKit’.


== Example ==
== Example ==

Revision as of 12:45, 2 September 2012

Html

[statements]

End Html

Description

The HTML statement allows you to ember pure HTML in your ap. This allows you to have additional functionality to your app. Statements within this block must follow all HTML rules. They are ignored by App Studio 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