Jump to content

[javascript] tab and return

shujin

so I'm trying to stock a tab and a enter into a var do somebody know how to do that. Also how to identifies the tab and the enter (does it work with ascii? and if so how to do it)

Link to comment
Share on other sites

Link to post
Share on other sites

\n : new line (line feed)

\t : tab

var tab = "\t";

Testing for equality works just like you would think.

Link to comment
Share on other sites

Link to post
Share on other sites

\n : new line (line feed)

\t : tab

var tab = "\t";

Testing for equality works just like you would think.

thanks exactly what I needed don't know why but I wasn't able to find this on the internet

Link to comment
Share on other sites

Link to post
Share on other sites

thanks exactly what I needed don't know why but I wasn't able to find this on the internet

 

This would be in the category of "Special Characters" or "Escaped Characters". Some more are listed here.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×