홈페이지 접속시에 자동으로 즐겨찾기 가능할까요?
<html>
<head>
<SCRIPT>
<body style="background-color:#f5f5f5;" onload="bookFav();">
if (!document.getElementById || !document.all) /* object detection to prevent errors */
{alert("Please use your browser menu to bookmark us!");} /* alert for non-supporting browsers */
else {
var el = document.getElementById("bookmark");
myURL = window.location.href; /* gets url of page to bookmark */
myTitle = document.title; /* gets title of page */
el.onClick = addFav(myURL,myTitle); /* this event is supposed to open the bookmark dialog */
}
}
function addFav(aURL,aTitle){
if (document.all) /* is this MSIE? */
{window.external.AddFavorite(aURL,aTitle);} /* if yes then call bookmark dialog for MSIE */
else if(window.sidebar) {window.sidebar.addPanel(aURL,aTitle,"");} /* else call bookmark dialog for NS&FF */
return false;
}
</SCRIPT>
</head>
<body onload="bookFav();">
</body>
</html>
------------
위소스 처럼하면은 확인이 뜨던데 확인누르면은 자동으로 즐겨찾기가 되게 할수 없을까요??
댓글 4개
단, 즐겨찾기 해도 그 다음에도 또 팝업창이 뜨니까는 유의하시길 바랍니다.
게시판 목록
개발자톡
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1459 | 10년 전 | 1076 | ||
| 1458 | 10년 전 | 744 | ||
| 1457 | 10년 전 | 655 | ||
| 1456 | 10년 전 | 730 | ||
| 1455 | 10년 전 | 736 | ||
| 1454 |
port443
|
10년 전 | 1038 | |
| 1453 | 10년 전 | 964 | ||
| 1452 | 10년 전 | 1051 | ||
| 1451 | 10년 전 | 5562 | ||
| 1450 | 10년 전 | 1129 | ||
| 1449 | 10년 전 | 1326 | ||
| 1448 | 10년 전 | 649 | ||
| 1447 | 10년 전 | 1699 | ||
| 1446 |
leeleeleelee
|
10년 전 | 1198 | |
| 1445 |
|
10년 전 | 1122 | |
| 1444 | 10년 전 | 1536 | ||
| 1443 | 10년 전 | 999 | ||
| 1442 |
|
10년 전 | 618 | |
| 1441 | 10년 전 | 1449 | ||
| 1440 | 10년 전 | 771 | ||
| 1439 |
|
10년 전 | 850 | |
| 1438 |
|
10년 전 | 1444 | |
| 1437 |
this1mg
|
10년 전 | 1086 | |
| 1436 | 10년 전 | 937 | ||
| 1435 |
Angel하늘
|
10년 전 | 1004 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기