window.open ¼Ó¼º »ç¿ë ¹æ¹ý |
|
|
 |
17³â Àü |
<script type="text/javascript">
/*
window.open(url:String, name:String, properties:String)
open ÇÔ¼ö´Â ¹Ýµå½Ã 3°³ÀÇ ¸Å°³º¯¼ö°¡ ÀÖ°í, ¸Å°³º¯¼ö ¼ø¼´Â ÁöÄÑ¾ß ÇÔ.
nameÀº Æ˾÷âÀÇ À̸§, ÁÖ·Î ÇÁ·¹ÀÓ ¹®¼ÀÇ TargetÀ¸·Î »ç¿ë
nameÀº »ç¿ëÇÏÁö ¾ÊÀ¸·Á¸é " " ¸¸ Ç¥½ÃÇØÁÝ´Ï´Ù. ¹Ýµå½Ã Ç¥½ÃÇØ¾ß ÇÔ.
*/
function win() {
window.open("http://eschyles.mireene.com/", "", ""); //¼Ó¼º ÁöÁ¤ÇÏÁö ¾ÊÀº ±âº»Ã¢
}
function menu_win() {
window.open("http://eschyles.mireene.com/", "", "menubar=1"); //¸Þ´º¹Ù ¾ø´Â Æ˾÷
}
function full_win() {
window.open("http://eschyles.mireene.com/", "", "fullscreen"); //Ç®½ºÅ©¸° ¹æ½Ä
}
function channel_win() {
window.open("http://eschyles.mireene.com/", "", "channelmode"); //ä³Î¸ðµå
}
function status_win() { // »óÅÂÇ¥½Ã¹Ù ÀÖ´Â Æ˾÷
window.open("http://eschyles.mireene.com/", "", "width=400, height=300, status=1");
}
function popup_win1() { //Å©±â width400 height300 Æ˾÷â
window.open("http://eschyles.mireene.com/", "", "width=400, height=300");
}
function popup_win2() { //À§Ä¡ left=500, top=400 ¿¡¼ ¿¸®´Â Æ˾÷â
window.open("http://eschyles.mireene.com/", "", "width=400, height=300, left=500, top=400");
}
function popup_win3() { //½ºÅ©·Ñ¹Ù ÀÖ´Â Æ˾÷
window.open("http://eschyles.mireene.com/", "", "width=400, height=300, scrollbars=1");
}
function popup_win4() { //ÁÖ¼ÒÇ¥½ÃÁÙ ÀÖ´Â Æ˾÷
window.open("http://eschyles.mireene.com/", "", "width=400, height=300, left=100, location=1");
}
</script>
<body>
<input type="button" value="¼Ó¼º ÁöÁ¤ÇÏÁö ¾ÊÀº ±âº» â" onclick="win()">
<input type="button" value="¸Þ´º¹Ù ¾ø´Â Æ˾÷" onclick="menu_win()">
<input type="button" value="Ç®½ºÅ©¸° Æ˾÷" onclick="full_win()">
<input type="button" value="ä³Î¸ðµå Æ˾÷" onclick="channel_win()">
<input type="button" value="»óÅÂÇ¥½Ã¹Ù ÀÖ´Â Æ˾÷" onclick="status_win()">
<input type="button" value="width400 height300 Æ˾÷â" onclick="popup_win1()">
<input type="button" value="À§Ä¡ left=500, top=400 Æ˾÷â" onclick="popup_win2()">
<input type="button" value="½ºÅ©·Ñ¹Ù ÀÖ´Â Æ˾÷" onclick="popup_win3()">
<input type="button" value="ÁÖ¼Ò ÀԷ ǥ½ÃÁÙ ÀÖ´Â Æ˾÷" onclick="popup_win4()">
</body>
|
|
̵̧ : 263 |
̵̧
¸ñ·Ï
|
|