Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > ASP > ASP Forum > ช่วยหน่อยนะคะ อยากได้ code ถามยืนยันตอนที่เราปิกหน้า IE ว่าต้องการปิดหรือไม่ ใครมีช้วยส่ง code



 

ช่วยหน่อยนะคะ อยากได้ code ถามยืนยันตอนที่เราปิกหน้า IE ว่าต้องการปิดหรือไม่ ใครมีช้วยส่ง code

 



Topic : 003550

Guest




อยากได้ code ถามยืนยันตอนที่เราปิกหน้า IE ว่าต้องการปิดหรือไม่ ใครมีช้วยส่ง code ให้ด้วยนะคะ
จะเอามาประยุกต์ใช้ในการ logout ออกจากระบบค่ะ
( เด็กปี 4 )


Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 3 เม.ย. 2548 19:05:15 By : เด็กปี 4 View : 3386 Reply : 5
 

 

No. 1

Guest


ไม่รู้ใช่ที่ต้องการรึป่าว ลองดูฮะ

<input type = 'button' name = 'btn_close' value = 'close' onClick = 'window.close()' >






Date : 4 เม.ย. 2548 14:31:07 By : Jack
 


 

No. 2

Guest


ขอบคุณนะคะที่ให้ code
แต่ที่ต้องการจริง ๆ คือเราคลิกที่ปุ่ม close ของ หน้า page IE นะค่ะ แล้วให้มีข้อความ
อื จะหมายถึง code java script มากกว่าน่ะค่ะ
Date : 5 เม.ย. 2548 08:43:56 By : เด็กปี4
 

 

No. 3



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

<script lanauge="javascript">
function con()
{
if(confirm(confirm('Confirm Delete ?')==true)
{
window.close();
}
}
</script>
<input type = 'button' name = 'btn_close' value = 'close' onClick = "con">
Date : 5 เม.ย. 2548 13:29:11 By : @W_IN
 


 

No. 4

Guest



<!-- ONE STEP TO INSTALL CLOSING WINDOWS:

1. Copy the coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document -->

<BODY>

<!-- Original: David Sosnowski ([email protected]) -->
<!-- Web Site: http://www.codebelly.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!--

There are six slightly different scripts below. In cases
where images are used, replace the image name with the
name of your own image.

Other than that, just insert the code as shown into your
page <body> wherever you wish the closing link, image,
or button to appear.

Special Note on Frameset Pages:

Closing windows that are comprised of a frameset requires
that you ask to close the "topmost" window, *not* the
page that contains the JavaScript closing code. Thus,
where window.close() will work fine with a regular page,
it will often fail (depending on the browser) when
attempting to close a window comprised of frameset pages.
In this case, the JavaScript closer must ask for
top.window.close() instead.

Other Background:

Before you ask... if a window is *not* a popup to begin
with, window.close() JavaScript calls will normally
result in a browser message requesting confirmation
that you wish to close the window. There is no means
in most browsers to avoid or circumvent this.

-->

<!--
1. Closing a Regular Window from a Link Click
---------------------------------------------
-->

<a href="javascript:window.close()">Close</a>

<!--
2. Closing a Regular Window from an Image Click
-----------------------------------------------
-->

<a href="javascript:window.close()">
<img border="0" src="closingwindows.gif" width="95" height="46">
</a>

<!--
3. Closing a Regular Window from a Button Click
-----------------------------------------------
-->

<form>
<input type="button" value="Close" onClick="window.close()">
</form>

<!--
4. Closing a Frameset Window from a Link Click
----------------------------------------------
-->

<a href="javascript:top.window.close()">Close</a>


<!--
5. Closing a Frameset Window from an Image Click
------------------------------------------------
-->

<a href="javascript:top.window.close()">
<img border="0" src="closingwindows.gif" width="95" height="46">
</a>

<!--
6. Closing a Frameset Window from a Button Click
------------------------------------------------
-->

<form>
<input type="button" value="Close" onClick="top.window.close()">
</form>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 2.78 KB -->
Date : 5 เม.ย. 2548 16:29:42 By : Nancy
 


 

No. 5



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

Code (JavaScript)
<script language="JavaScript"> 
function unload(){
    if (event.clientY < 0) {
      event.returnValue = 'Do you want to close windows';
    }   
}
 
window.onbeforeunload = unload; 
</script>

Date : 2011-01-12 10:34:43 By : webmaster
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยหน่อยนะคะ อยากได้ code ถามยืนยันตอนที่เราปิกหน้า IE ว่าต้องการปิดหรือไม่ ใครมีช้วยส่ง code
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 04
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่