HighDots Forums  

click the image to close

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss click the image to close in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
stomps
 
Posts: n/a

Default click the image to close - 08-06-2004 , 08:59 PM






I rarely post without extensive searching on my own but I am short on time getting my website on line. I want to allow the user to click the image in the page to close the window. how do I do that?

Reply With Quote
  #2  
Old   
E Michael Brandt
 
Posts: n/a

Default Re: click the image to close - 08-06-2004 , 10:13 PM






Well you can add a simple javascript to the image, (I can show you how
if you still want to do this after you read on), but it will not work as
you might be hoping. It will indeed just go ahead ans close the browser
window but ONLY if it is a window you created with window.open().
Otherwise it'll first ASK the user if she agrees to close the window and
wait for her response! Do you still want the simple javascript?

stomps wrote:

Quote:
I rarely post without extensive searching on my own but I am short on time getting my website on line. I want to allow the user to click the image in the page to close the window. how do I do that?
--

e michael brandt
michael at valleywebdesigns.com
www.valleywebdesigns.com ::: home of justso picturewindow & photoalbum

--


Reply With Quote
  #3  
Old   
Gary White
 
Posts: n/a

Default Re: click the image to close - 08-06-2004 , 10:40 PM



"E Michael Brandt" <michael (AT) valleywebdesigns (DOT) com> wrote


Quote:
It will indeed just go ahead ans close the browser
window but ONLY if it is a window you created with
window.open().
It's a small point, but it will also close a window opened with a link
target that caused a new windows, like "_blank".

Gary




Reply With Quote
  #4  
Old   
E Michael Brandt
 
Posts: n/a

Default Re: click the image to close - 08-07-2004 , 08:44 AM



Don't think I ever knew that. Or I forgot, which I might I do a lot.
Thanks.

--

e michael brandt
michael at valleywebdesigns.com
www.valleywebdesigns.com ::: home of justso picturewindow & photoalbum

--

Gary White wrote:

Quote:
"E Michael Brandt" <michael (AT) valleywebdesigns (DOT) com> wrote in message
news:cf1dsh$slt$1 (AT) forums (DOT) macromedia.com...


It will indeed just go ahead ans close the browser
window but ONLY if it is a window you created with
window.open().


It's a small point, but it will also close a window opened with a link
target that caused a new windows, like "_blank".

Gary


--

e michael brandt
michael at valleywebdesigns.com
www.valleywebdesigns.com ::: home of justso picturewindow & photoalbum

--


Reply With Quote
  #5  
Old   
Gary White
 
Posts: n/a

Default Re: click the image to close - 08-07-2004 , 12:13 PM



E Michael Brandt wrote:

Quote:
Don't think I ever knew that. Or I forgot, which I might I do a lot.
Thanks.

No problem. You're welcome.


Gary


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.