master pages - How can I get the Google Mini search results, using the iFrame, to not open in the iFrame -


I have an asp.net site using Google Mini. I have a search box on the main page that shows a search result page Redirects to the results that show results in IFrame. This approach has been taken from all documents provided by Google to the Mini and it seems very easy.

The doctor does not cover (or I can not get it) that one click on any other result. Aspx can be a page, that page opens with everyone, which is the glory of the masterpiece inside the IFrame, which is clearly not desired I end up with a page in one page

< P> To grab XML search results and to manipulate myself, how do I get a search results link to open like a normal page?

You can add this javascript to your masterpage so that the user clicks it when the user clicks the link < / P>

  & lt; Script type = "text / javascript" & gt; Try {if (self.parent.frames.length! = 0) self.parent.location = document.location; } Hold (exception) {} & lt; / Script & gt;  

Another way to do this is to use the target encore anchor (& lt; a & gt;) tag. If I miss it correctly

  & lt; A href = "whereever" target = "_ parent" & gt; Link & lt; / A & gt;  

I have used the JavaScript solution before and it works, I have not tested the target .


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -