Videogamer555 Posted September 26, 2012 Share Posted September 26, 2012 I found this sample Javascript on another site: <script language="JavaScript">// open a new windowwindow.open("http://localhost", "new","width=480,height=640,toolbar=no,resizable=no,menubar=no,location=no,status=no,directories=no");</script> I noticed that it used double quotes in the Javascript, when normally double quotes are used in HTML, but single quotes are usually what I've seen used in Javascript. So which is correct? Is this sample "technically" wrong by the Javascript standard? Or are both types of quotes equally valid? Link to comment Share on other sites More sharing options...
justsomeguy Posted September 26, 2012 Share Posted September 26, 2012 Both types are equivalent in Javascript, as long as they are paired correctly. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now