หน้าแรก > Flash > javascript close window

javascript close window

มิถุนายน 2, 2008 ใส่ความเห็น Go to comments

วิธีการใส่ javascript เพื่อปิด window ทำได้ 2 แบบ ดังนี้
1) ใส่ที่ปุ่ม
<form>
<input type = “button” value = “close window” onClick = “javascript:window.close();”>
</form>



2) ใส่ที่ link
<a href = “javascript:window.close();”>close window</a>
close window

Categories: Flash ป้ายกำกับ:
  1. miyaki
    กุมภาพันธ์ 2, 2009 ที่ 11:48 am | #1

    อยากทราบว่าถ้าจะปิดwindows ตรง กากบาทค่ะ
    แล้วให้มันมีMessage boxแจ้งเตื่อนก่อนจะกดปิด
    ทำยังไงค่ะ ขอ code หน่อยได้ป่ะค่ะ

  1. No trackbacks yet.

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Connecting to %s

Follow

Get every new post delivered to your Inbox.