How to 'get' the error from hotspot login page ???

I want to get the text of the error show in hotspot login page when you get an error.
I want to do that because i want to write more information below the error about each different errors.

I tried the following code in my login.html but i always return in the ‘else’ statement.

$(if error)
    $(if $(error) == "invalid username or password")  
	IF : $(error)
    $(else)
	ELSE : $(error)
    $(endif)
$(endif)

Any help please ???

I think there is an easier way to do what you want.
Take a look at errors.txt file on your hotspot directory.
Modify the displayed text as you want!

thank you for your answer but i just made it work with java script in my html login page

i want to do this because i want to play a sound erorr message for each error…

now it is working like i want… :smiley: