# Add to favorites framed page problem

**URL:** <https://forum.kirupa.com/t/add-to-favorites-framed-page-problem/221976>\
**Category:** web dev\
**Created:** [April 9, 2007, 9:09pm UTC](https://forum.kirupa.com/t/add-to-favorites-framed-page-problem/221976 "2007-04-09T21:09:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tunayx](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@tunayx](https://forum.kirupa.com/u/tunayx)\
**Post date:** [April 9, 2007, 9:09pm UTC](https://forum.kirupa.com/t/add-to-favorites-framed-page-problem/221976/1 "2007-04-09T21:09:14Z")

</div>

Hi, I have a script works with opera, firefox and ie but my site contains frames so when I click Add to favorites in internet explorer it adds main.html adress not index.html  
I need a code modification so the script can add pre-defined adress, can you help me?

\<!–webbot bot=“HTMLMarkup” startspan --\>\<a href=“[http://www.freewebtown.com/aymavisi](http://www.freewebtown.com/aymavisi)” rel=“sidebar” onclick=“if(document.all && !window.opera){ window.external.AddFavorite(location.href, document.title);return false; }else{ this.title = document.title; }” title=“bookmark this page”\>Favorilere Ekle\</a\>\<!–webbot
