PC Review


Reply
Thread Tools Rate Thread

where do you put script for close window

 
 
=?Utf-8?B?TGFycnlmNjY2?=
Guest
Posts: n/a
 
      15th Feb 2005
I have pictures opening with an image from my website, where would I put the
code snippet for close window. I have tried to insert it into the line that
shows open new window & image name to no avail. Can someone help?
 
Reply With Quote
 
 
 
 
Tom Pepper Willett
Guest
Posts: n/a
 
      15th Feb 2005
You put it in the actual page of the new window that's opened.
--
===
Tom "Pepper" Willett
Microsoft MVP - FrontPage
---
About FrontPage 2003:
http://office.microsoft.com/home/off...tid=FX01085802
FrontPage 2003 Product Information:
http://www.microsoft.com/office/fron...o/default.mspx
Understanding FrontPage:
http://msdn.microsoft.com/office/und...ing/frontpage/
FrontPage 2002 Server Extensions Support Center:
http://support.microsoft.com/default...h;en-us;fp10se
===
"Larryf666" <(E-Mail Removed)> wrote in message
news:79D2203C-029A-4870-B5E9-(E-Mail Removed)...
|I have pictures opening with an image from my website, where would I put
the
| code snippet for close window. I have tried to insert it into the line
that
| shows open new window & image name to no avail. Can someone help?


 
Reply With Quote
 
 
 
 
sheetrum
Guest
Posts: n/a
 
      16th Feb 2005
What I have done , and it works fine, was to create a hyperlink. Type the
words "Close Window" or create a button, etc.... your choice. Right-click,
choose Hyperlink... and copy and paste the line below for the link.

JavaScript:window.close();

If you want to print the page, just switch the word "close" for the word
"print". I just learned that last night! It did take a bit of searching
to find it, though.




"Tom Pepper Willett" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You put it in the actual page of the new window that's opened.
> --
> ===
> Tom "Pepper" Willett
> Microsoft MVP - FrontPage
> ---
> About FrontPage 2003:
> http://office.microsoft.com/home/off...tid=FX01085802
> FrontPage 2003 Product Information:
> http://www.microsoft.com/office/fron...o/default.mspx
> Understanding FrontPage:
> http://msdn.microsoft.com/office/und...ing/frontpage/
> FrontPage 2002 Server Extensions Support Center:
> http://support.microsoft.com/default...h;en-us;fp10se
> ===
> "Larryf666" <(E-Mail Removed)> wrote in message
> news:79D2203C-029A-4870-B5E9-(E-Mail Removed)...
> |I have pictures opening with an image from my website, where would I put
> the
> | code snippet for close window. I have tried to insert it into the line
> that
> | shows open new window & image name to no avail. Can someone help?
>
>



 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      16th Feb 2005
The close works fine. The print will fail in IE5/Mac, however. To support
that browser, as well as the others, this is about as good as you can get -

Put this in the head of the document -

<script type="text/javascript">
function print_page(where){
var is_mac=(navigator.platform.indexOf("ac") != -1);
(document.all && is_mac)?
alert("Select \"Print\" from the menu") : where? where.window.print() :
window.print();
}
</script>

Put this in the body of the document -

<a href="javascriptrint_page()">Print this</a>



--
Murray

"sheetrum" <(E-Mail Removed)> wrote in message
news:unBcS$(E-Mail Removed)...
> What I have done , and it works fine, was to create a hyperlink. Type the
> words "Close Window" or create a button, etc.... your choice.
> Right-click, choose Hyperlink... and copy and paste the line below for the
> link.
>
> JavaScript:window.close();
>
> If you want to print the page, just switch the word "close" for the word
> "print". I just learned that last night! It did take a bit of searching
> to find it, though.
>
>
>
>
> "Tom Pepper Willett" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> You put it in the actual page of the new window that's opened.
>> --
>> ===
>> Tom "Pepper" Willett
>> Microsoft MVP - FrontPage
>> ---
>> About FrontPage 2003:
>> http://office.microsoft.com/home/off...tid=FX01085802
>> FrontPage 2003 Product Information:
>> http://www.microsoft.com/office/fron...o/default.mspx
>> Understanding FrontPage:
>> http://msdn.microsoft.com/office/und...ing/frontpage/
>> FrontPage 2002 Server Extensions Support Center:
>> http://support.microsoft.com/default...h;en-us;fp10se
>> ===
>> "Larryf666" <(E-Mail Removed)> wrote in message
>> news:79D2203C-029A-4870-B5E9-(E-Mail Removed)...
>> |I have pictures opening with an image from my website, where would I put
>> the
>> | code snippet for close window. I have tried to insert it into the line
>> that
>> | shows open new window & image name to no avail. Can someone help?
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling webpage with logon script, logon script wont close gerryR Microsoft Windows 2000 CMD Promt 16 6th Nov 2009 06:19 PM
BUG: Script blocking strips script parameters during script authorization Jonathan K. Shay Spyware Announcements 3 2nd May 2005 06:18 PM
Re: Question??? You know when you double click in a username field you see your previous entries? How do you reset this so you can see your entries again. Thorsten Matzner Windows XP New Users 0 5th Jun 2004 04:34 PM
Question??? You know when you double click in a username field you see your previous entries? How do you reset this so you can see your entries again. =?Utf-8?B?Y2hyaXM=?= Windows XP General 1 3rd Jun 2004 08:17 PM
Can Not window.close() to Close a New Window After Submitting to It Chan Windows XP Internet Explorer 0 8th Oct 2003 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:34 PM.