HtmlGetParam

Top  Previous  Next

function HtmlGetParam(sTagSource, sParamName) As String

 

Searches in sTagSource for the first occurrence of the parameter sParamName and returns the parameter value.

 

If the parameter sParamName isn't found, an empty string is returned.

 

Parameters

 

sTagSource ... String expression sought.
sParamName ... String expression. Parameter name searched.

 

Example:

Dim sTagSource, sValue

 

sTagSource = "Click <a href=info.htm>here</a> for more information"

sValue = HtmlGetParam(sTagSource, "href")

' returns sValue = "info.htm"




Translate document: