
Insert Text into a web page client side
Quote:
> i want to show some text if you e.g. press a button, how can i do this.
Here's an IE solution (well, this *is* a
VBScript newsgroup after all ;-), though javascript is generally preferred for cleint side script (only IE supports VBscript on the client)...
<html>
<head>
<script language="vbscript">
sub foo()
sMsg = "The time is now " & time() & "<br>"
msg.insertAdjacentHTML "beforeEnd", sMsg
end sub
</script>
</head>
<body>
<input type='button' onclick='call foo()' value='click me...'>
<div id='msg'><div>
</body>
</html>
--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--