Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VBScript
Expertise: Intermediate
May 29, 2003

A Shortcut to Writing Basic HTML Tags


<%@ LANGUAGE="VBSCRIPT" %>

<%

Function htmltemp()
template = "<HTML>"
template = template & "<TITLE><!-title-></TITLE>"
template = template & "<BODY>"
template = template & "<!-body->"
template = template & "</BODY>"
template = template & "</HTML>"
htmltemp = template
End Function

thetitle = "HTML Template"
thebody = "<CENTER> This is the template!</CENTER>"

template = htmltemp()
template = Replace(template, "<!-title->", thetitle)
template = Replace(template, "<!-body->", thebody)
Response.Write template


%>
Devington B.
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap