Javascript

Believe it or not, JavaScript DOES work with RunBASIC.

Here's a simple example:

code format="vb" html "" html "document.write(""This is Javascript!"");" html " " code

That will print 'This is Javascript!' on the screen.

Very simple, but it shows JavaScript is executable. If there are any limits to JS, I haven't found them. One problem is having to use only javascript for handling it's variables, though.

However, this should help implement forms and such that aren't available in RunBASIC yet.

- Chris Iverson user:thedarkfreak


 * //More Javascript//**

Change color of scrollbars - 1198033579 code format="vb" Cls Textarea #t, "Changing scrollbar colors with JavaScript", 10, 10 Html "" Html "function ScrollColor{		document.body.style.scrollbarFaceColor='Red';		}" Html "ScrollColor" Html "" Print: Print Link #quit, "Exit", [quit] Wait

[quit] Cls End code

Identify Browser code format="vb" Cls Html "" Html "document.write('Your browser is ' + navigator.appName+ ', ');" Html "document.write('Version number ' + navigator.appVersion+ '.');" Html " " End code