A simple question ... ...

Results 1 to 2 of 2

Thread: A simple question ... ...

  1. #1
    Peter_X Guest

    Default A simple question ... ...

    I know it&#039s simple but ... How can I create a button and link it to other documents (on the same frame) when clicked, without having to open another document window (on different frame)? <BR>Your suggestion is appreciated. Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: A simple question ... ...

    Are you sure this is an ASP question? It sounds like just plain ol&#039 HTML or JavaScript to me.<BR><BR>Anyway, to get to your question. Do you actually want a real button? Or will a hyperlink do? Basically, using JavaScript you can have a link (or button) load a new document for any frame/window you want. There are several ways to do this, including one using just HTML (I think), but JavaScript may pose to be the simplest. Do something like this:<BR><BR>&lt;input type=button value="Click me" onClick="parent.whichdocument.document.location = &#039whatever.asp&#039;"&gt;<BR><BR>"whichdocument " refers to the name given to the document in the frameset. If you want to reload the document that has this particular button in it, you may leave out the "parent.whichdocument" stuff. Have fun!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts