Question

sory guys, click the first link you will see the image i been mark by red, after you click the second link, you will see the arrow.

1) http://s261.beta.photobucket.com/user/minaekoz/media/satu.png.html

2) http://s261.beta.photobucket.com/user/minaekoz/media/satua.png.html

Question :

That is social bookmarking site i use to promote my blog but i want to remove the plugin after somebody click that link in the first image.

how can i remove that plugin in the second image after user click the link at the first image?

*sory if my english so bad

Was it helpful?

Solution

I'm not sure how your page is embedded, I guess it's done using frames or an iframe? This would be important to know, but you'll most likely be able to use some javascript code like this (called in some element's onload event (e.g. <body>):

if (window.top != window.self)
    window.top.location.replace(window.self.location.href);

I think you can add it through using a custom BlogSpot template or maybe with some of the widgets as well.

OTHER TIPS

Probably you can't. That social bookmarking site will probably open your website in an IFRAME, and therefore, clicks in your page cause IFRAME navigation, and not browser navigation.

Since your site, and the IFRAME site are different, the javascript in your site cannot access the DOM (Document Object Model) in the other site because SOP (Same Origin Policy).

You can disallow that your website run in IFRAMEs by using the X-Frame-Options http header though, but I would leave it like that.

Cheers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top