[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Frames and JS

Using JS to change the contents of multiple frames:

1. Do not use a <a href=... onclick="newurl()"> format. The problem is 
that this causes Navigator to try to go to the url specified in the JS and 
the url specified in the anchor. Result=blowup

2. DO use a button. Just have the button's onClick call a JS function that 
changes the contents of the desired frame. Example

function newurl() {
       		alert('ABOUT TO GO TO A NEW URL!!!')

are the names of the frames.
This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.