How can a link open a window in same page using JQuery? It works in Javascript as shown
<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;

&lt;title&gt;Open Div from Link&lt;/title&gt;
&lt;script src="http://code.jquery.com/jquery-1.4.4.js"&gt;&lt;/script&gt;

&lt;meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /&gt;

&lt;style type="text/css"&gt;

/*&lt;![CDATA[*/
body
{
  background-color:#aaaaff;
}

#one
{
  position:absolute;
   top:80px;
   left:40px;
}

object
{
  width:980px; 
  height:660px; 
  border:solid 1px #000000;
}
/*//]]&gt;*/

&lt;/style&gt;


&lt;script language="javascript" type="text/javascript"&gt;

//&lt;![CDATA[
// written by: Coothead
  function updateObjectIframe(which) {
    document.getElementById('one').innerHTML = '&lt;'+'object id="foo" name="foo" type="text/html" data="'+which.href+'"&gt;&lt;\/object&gt;';
}

//]]&gt;

&lt;/script&gt;
&lt;/head&gt;


&lt;body&gt;

&lt;div id="one"&gt;
&lt;object id="foo" name="foo" type="text/html" data="http://www.w3schools.com/"&gt;&lt;/object&gt;
&lt;/div&gt;

&lt;div&gt;
&lt;a href="http://www.google.com" onclick="updateObjectIframe(this); return false;"&gt;Retreive Existing Records&lt;/a&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
