|
|
Browse by Tags
All Tags » interview quest... » Javascript (RSS)
-
Question: How do I search for a particular text string on the page?
Answer: In Netscape Navigator 4.x, to search for a string use the window.find(string) method; In Internet Explorer 4.x and newer, create a text range object (TRange in the example below) and use the method TRange.findText(string).
Example: The following script gets a ...
-
Question: How do I hide JS code from old browsers that do not support JavaScript?
Answer: To prevent old browsers from displaying your JS code, do the following: Immediately after the opening <script> tag, put a one-line HTML-style comment without the closing characters, so that the first two lines of your script would look like this: ...
-
What’s relationship between JavaScript and ECMAScript? - ECMAScript is yet another name for JavaScript (other names include LiveScript). The current JavaScript that you see supported in browsers is ECMAScript revision 3. What are JavaScript types? - Number, String, Boolean, Function, Object, Null, Undefined. How do you convert numbers ...
|
|
|