Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Display an HTM Page Created by a VB script

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,25284
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Display an HTM Page Created by a VB script
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Display an HTM Page Created by a VB script - 8/25/2005 9:34:30 AM   
  Fredledingue


Posts: 321
Score: 0
Joined: 5/9/2005
From:
Status: offline
-Create a file let's say test.htm

-Wirte the following codes in the test.htm file with notepad. You must include the red codes in the htm page, put your script instead of the green sample code I worte... The htm source is, in this example represented by the variable NewHtm.

-Link to this htm page or simply open it in your favorite browser.

code:


<SCRIPT LANGUAGE="VBScript">
<!--
sub window_onLoad()

'-----script that generates an htm page source-------
NewHtm = NewHtm & "<p>Hello World! " & Date & "</p>"
'-----end of your script----

Document.Body.InnerHTML = NewHtm
end sub
-->
</SCRIPT>


< Message edited by Fredledingue -- 8/25/2005 9:39:38 AM >


_____________________________

Fred
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Display an HTM Page Created by a VB script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts