View Full Version : Google News Web Element: Javascript

07-21-2011, 01:21 AM
I started using the Google News Web Element on my website. The website for Google News Web Element is: http://www.google.com/webelements/#!/news

I want the links to open in a new window, which cannot be done with the iframe version. Their website only allows me to generate an iframe. I was told that this can be done by using the javascript version, but I have not been able to figure it out.

This is their link to the documentation: http://code.google.com/apis/newssearch/newsshow/

I know very little about javascript, and have been trying to get it to work but have been unsuccessful. I want to use the Medium Rectangle size and I want the only topic to be "Swainsboro". The only modification that I want to make is for the links to open in a new window.

If anyone can help me do this, it would be appreciated.

This is the iframe data that was generated by the wizard:

<iframe frameborder=0 marginwidth=0 marginheight=0 border=0 style="border:0;margin:0;width:300px;height:250px;" src="http://www.google.com/uds/modules/elements/newsshow/iframe.html?rsz=large&format=300x250&ned=us&hl=en&q=Swainsboro&element=true" scrolling="no" allowtransparency="true"></iframe>