<button onclick="window.open('backoffice.php?user=accountant&level=2','new','')">Open BackOffice</button>
<?php echo "<script>alert('User:{$_GET["user"]}\\nLevel:{$_GET["level"]}');</script>"; ?>
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <script language="javascript"> var win1; var win2; var win2_receive_func; function ready(){ win1=window.open('test.php', '_blank'); win2=window.open('backoffice.php', '_blank'); } function set_win2_func( func){ win2_receive_func = func; } function set_receive_from_win1( msg){ win2_receive_func(msg); } </script> <body onLoad="ready()"> TEST 2 Window OPEN </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <title>test.php</title> </head> <script language="javascript"> function button_click(){ window.parent.set_receive_from_win1('TEST'); } </script> <body> <button onClick="button_click()" >Click Me TEST.php</button> </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <title>backoffice.php</title> </head> <script language="javascript"> function receive_form_parent( msg ){ alert( msg ); } function ready(){ window.parent.set_win2_func( receive_form_parent ); } </script> <body onLoad="ready()"> TEST backoffice.php </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง