Sticky point to line
Demo: make Input Box disappear using JavaScript
Here's what you need in Global JavaScript:
[code]function timer() {[br] var time = ggbApplet.getValue("time");[br][br] // select hidden Input Box (to make sure text isn't lost from InputBox1[br] ggbApplet.evalCommand('SelectObjects(InputBox2)');[br][br] // increment time[br] ggbApplet.setValue("time", time + 1);[br][br] // make sure InputBox1 has focus again[br] ggbApplet.evalCommand('SelectObjects(InputBox1)');[br][br] // stop timer after 35 seconds or so [br] if (time < 35) {[br] setTimeout(timer, 1000);[br] }[br][br]}[br][br]function ggbOnInit() {[br] timer();[br]}[/code]