Back Button Adds Favorites?


Recommended Posts

I think this is a new scam.

Using IE 7 I was searching for drug prescribtion cost info on Google. This one particular site that kept coming up for "cheap canadian drugs" or some such nonsense would open an "add to favorites" dialog box whenever I tried to use the back button. I had to close the window to get rid of them.

Has anyone heard of this?

Link to post
Share on other sites
That's a new one to me. I would have viewed the source to see how they scripted it.

Here's the url if you want to check it:

Back button to favorites

I tried it again in another session. Same results. I also noticed that it happens when you try to close the window.

I'm not interested in buying anything from them. Just wondering about the favorites trying to open.

Link to post
Share on other sites

Bingo! It doesn't try to bookmark the site using Opera.

<script>
<!--
var book;
function bookmark(){

if (book != 1) {
if (navigator.appName == "Microsoft Internet Explorer") {
window.external.AddFavorite("http://newpeoplesite.com/e/ch/index.php?&pid=eph4883",'Canadian Health&Care Mall');
}
}
}
-->
</script>

Edited by TheTerrorist_75
Link to post
Share on other sites
Bingo! It doesn't try to bookmark the site using Opera.

<script>
<!--
var book;
function bookmark(){

if (book != 1) {
if (navigator.appName == "Microsoft Internet Explorer") {
window.external.AddFavorite("http://newpeoplesite.com/e/ch/index.php?&pid=eph4883",'Canadian Health&Care Mall');
}
}
}
-->
</script>

The code is a little over my head.

So why does it do it in IE (other than the usual M$ issues) and not in Opera?

Link to post
Share on other sites
The code is a little over my head.

So why does it do it in IE (other than the usual M$ issues) and not in Opera?

This line

if (navigator.appName == "Microsoft Internet Explorer") {

checks if the browser is IE before evaluating the code the add the favorite. It probably wouldn't work anyway; I doubt Opera has the AddFavorite API the script uses.

Link to post
Share on other sites
The code is a little over my head.

So why does it do it in IE (other than the usual M$ issues) and not in Opera?

This line

if (navigator.appName == "Microsoft Internet Explorer") {

checks if the browser is IE before evaluating the code the add the favorite. It probably wouldn't work anyway; I doubt Opera has the AddFavorite API the script uses.

OK. I understand now.

Thanks.

Joe

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...