Insert Text into a web page client side 
Author Message
 Insert Text into a web page client side

Hallo,
i want to show some text if you e.g. press a button, how can i do this.
Thanks
Markus


Sat, 09 Oct 2004 22:00:00 GMT  
 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
--



Sat, 09 Oct 2004 22:37:25 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Stack overflow at binary tree balance

2. Client Side VB.Net Control for Web Page

3. Question about DBMemo and the return key

4. << DRIVE & PATH FROM ALIAS? >>

5. Populate Web Page thru client side Excel file.

6. server time reported on .asp web pages, how do I report client side time correctly

7. Client-side execution of wscript from web page

8. Redirect Web Page in JavaScript Client-Side

9. Loading text dynamically into existing page via client side vbscript

10. Creating Text File on Client's Local Machine When Accessing Web Default Page

11. ShellExecute and CopyFile routines

12. fat client (MSMQ, VB Program) or thin client (ASP page then have Web server use MSMQ)

 

 
Powered by phpBB® Forum Software