ajay raju

ajay raju

  • NA
  • 398
  • 0

javasript error when i load the page?

May 6 2010 8:30 AM

hi,
i am taking one master page and 3 childpages. i am writing java script  function in one child page(page1). in page2,page3 i am not write javascript. page1 javascript  function name is call in body tag of masterpage. like <body onload="check();">.
 
i provide links to all pages. my problem is when i click page2 or page3 it display one error in runtime i.e., "Microsoft JScript runtime error: Object expected". if i click page1 link it goes directly to page1, problem occured when i goes to page2,page3.
 
this error tells this check() function is not available in page2(,page3 how to load?). so this error occured,
 
how to solve this error please give a solution.
Thanks.

Answers (3)