JS determine whether there is an object page

function check (strObj)
(
if (typeof (eval ("document.all." + strObj))! = "undefined")
(
alert (strObj + "is an object");
)
else
(
alert (strObj + "is not an object");
)
)
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb
Tags:

Related Posts of JS determine whether there is an object page

  • JS object type to determine

    JS is a loosely typed language, an object that JS was particularly prominent. So how to determine what specific type of JS object? First, we can use the typeof operator to determine the basic type (number, object, function, undefined). If the typeof opera

  • js to determine whether the object is empty in the way (to)

    Js script writing often encountered when the object is null or not an object of the case, such a situation if we can use to judge it, and then to perform the appropriate processing method to determine the specific ways they are the following: 1, if (

  • SQL Server determine whether the object exists (finishing ...)

    Determine whether there is a database Table 2 determine whether there is 3 determine whether there is a stored procedure 4 determine the existence of temporary table 5 determining the existence of view 6 determine the existence of the function 7 obje ...

  • SQL Server determine the existence of the object (in order ...)

    Determine whether there is a database Table 2 determine whether there is 3 determine whether there is a stored procedure 4 determine the existence of temporary table 5 determining the existence of view 6 determine the existence of the function 7 obje ...

  • The following describes how to create an object of their own

    The following describes how to create an own object, such as HWPart, and then do the page to create the object A: 1. Determine the business object's basic properties and operations. 2. According to analysis of structural modeling, the general suc

  • Depth JVM - garbage collector (1)

    The purpose is to clear the garbage collection of objects no longer in use. gc activities by determining whether an object is an object reference to determine whether the collection of the object. gc first time to determine whether the object can be colle

  • JSP in the difference between page and pageContext

    corresponding to this page java.lang.Object keywords. JSP page itself, page object is converted current page Servlet class. Servlet class from the converted code, you can see this relationship: Object page = this; in the JSP page, rarely use the page

  • Beauty of Mathematics Series 9 - How to determine the relevance of Web pages and queries

    Author: Wu Jun, Google Fellow [We have already been discussed how to automatically download page , how to create the index , how to measure the quality of web pages (Page Rank). Today we talk about how to determine a page and a related query. Understandin

  • How to determine the existence of page elements

    jQuery basic - how to determine the presence or absence of page elements Turn-http: / / www.cnblogs.com/Capricornus/archive/2010/02/10/1667091.html Javascript in a traditional, when we are certain elements to a page before the operation, a good idea to de

  • Determine the page encoding (transfer)

    Determine the code page is our main page in order to resolve some garbled. Mainly use two jar package chardet.jar and cpdetector_1.0.7.jar. Specific use is as follows: public class BianMa { public static void main(String[] args){ String path=""; Code

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries