Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript from within javascript 1

Status
Not open for further replies.

rocknrisk

Programmer
May 14, 2002
43
GB
Hi all,

On my site I have a javascript menu. With 1 of the links I'd like to open a remote window (for site searches).

The menu item:

menu[0][2] = new Item(' Dictionary', 'dictionary.htm', '', 60, 10, 0);

I'd like to replace "dictionary.htm" with this script:

function remote(){
/*Credit: JavaScript Kit more JavaScripts here.*/
win2=window.open("remote.htm","","width=150,height=350,scrollbars")
win2.creator=self
}

or call "function remote()" using "remote()". The original script uses a form button:

<form>
<input type=&quot;button&quot; value=&quot;Launch remote!&quot; onClick=&quot;remote()&quot;>
</form>

I would very grateful for any help.

Thanks in advance.

Clinton[dazed] &quot;Finish what you started&quot;
 
i tried responding to this before but it doesn't seem to be posting. so here goes again. hopefully not duplicating.

you should be able to replace &quot;dictionary.htm&quot; with &quot;javascript: remote()&quot;.

glenn
 
Hi gacaccia,

Thank you very much. Your post has solved my problem.

Cheers,:)
Clinton &quot;Finish what you started&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top