Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: object expected

  1. #1
    New Coder
    Join Date
    May 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    object expected

    friends,
    i am always getting object expected at the onclick event. please suggest me here. i am not getting where i am going wrong

    [HTML]
    <html>
    <head>
    <title>Session expired</title>
    <script type="javascript" >
    function f5(las){
    opener.f6(las)
    self.close()
    }
    </script>
    </head>
    <body>
    <form name="laa" action="" method="get" >
    <input type="button" name="sess" value="sess" onClick="return f5(this.name)">
    </form>
    <p>Please login again. Press OK </p>

    </body>
    </html>
    [/HTML]

    cheers

  2. #2
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    You don't need the return remove it

    and <script type="text/javascript">
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  3. #3
    Senior Coder
    Join Date
    Jul 2005
    Location
    New York, NY
    Posts
    1,084
    Thanks
    4
    Thanked 19 Times in 19 Posts
    it looks like this script is supposed be in a pop-up window. Is it?


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •