### WebHandle replace Page Content

One way to replace the page content of the Website being opened, is by using JavaScript document functions.
Example Replace Page Content
`Private Sub Handle(req As ServletRequest, resp As ServletResponse)
'The user has called the website
'Take action based on the req parameter
'
'This replaced the current content
Log("New Content...")
Dim newcontent As String = "New File created " & DateTime.Time(DateTime.Now) & "

Bye from Rob"
resp.Write("
")
End Sub
`
BTW: This could also be useful
Example Opening a new created HTML File
`Private Sub Handle(req As ServletRequest, resp As ServletResponse)
'The user has called the website
'Take action based on the req parameter
'
'Create a new webpage in the www folder
Dim newcontent As String = "
New File created " & DateTime.Time(DateTime.Now) & "

Bye from Rob"
File.WriteString(File.DirApp, "/www/newfile.htm", newcontent)
'
'Open the file in a new window
resp.Write("
`