Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Simple JS close.window() not working!
Old 10-21-2007, 10:55 AM Simple JS close.window() not working!
Super Talker

Posts: 129
Trades: 0
Hi all, having a few problems with a simple JS line! I've added a behaviour to some images, on separate pages , such that when the image is clicked the whole window closes. I've done this through the dreaded DW. Below are two lines of code from the separate images, of which I can see no difference JS wise:

Code:
<td width="800" height="533"><a href="javascript:;" onClick="MM_callJS('close.window()')"><img src="Images/People/Large/Bob.jpg" name="image1" width="800" height="533" border="0" id="image1"></a></td>
Code:
 <td width="800" height="533"><a href="javascript:;" onClick="MM_callJS('close.window()')"><img src="Images/People/Large/Joyce.jpg" width="800" height="533" border="0" align="absmiddle"></a></td>
The first one works, the second doesnt! It can be viewed in action at http://www.17minutes.f2s.com/People.htm. Hover over the first thumbnail and then click it and a larger image in a new page appears. Click the image and the window closes. Try it with any other thumbnail and see what happens.

Any ideas please?
Thanks, Lol
__________________

Please login or register to view this content. Registration is FREE
- Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
 
Register now for full access!
Old 10-21-2007, 12:41 PM Re: Simple JS close.window() not working!
Super Talker

Posts: 129
Trades: 0
Ignore it! It helps if you go object.action not action.object in the syntax!

Cheers, Lol
__________________

Please login or register to view this content. Registration is FREE
- Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Reply     « Reply to Simple JS close.window() not working!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19884 seconds with 12 queries