tmp wrote:
I want to have a 'help' popup on seveal key words on a page.
I don't want to use a button...
But would like to do it like a link... so the text on the page is the link
to the Popup Window.
Can anyone provide me with a simple example of a JavaScript to do this.
thanks in advance.
Be aware of the risk of using new windows to display content. Not all user
agents support client-side JavaScript. Some user agents that support
client-side JavaScript have it disabled. Some block any attempt to open a new
window. Some open your new window in a new tab instead (which means you can
not control to the size/chrome of the new window).
In general, the way to execute client-side JavaScript using a link is:
<a href="noJS.html" onclick="yourFunction();return false;">Link to
yourFunction()</a>
Specifically, opening a window is something like:
<a href="yourPopup.html"
target="yourPopupWindow"
onclick="window.open(this.href, this.target, '...attributes...');return
false;">Link</a>
The content of '...attributes...' is documented at <url:
http://msdn.microsoft.com/workshop/a...ods/open_0.asp
/>
--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq