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

Re: loading URL from main Windows

On Mar 5,  3:43pm, Laverdiere, Pascal: BSCOTT wrote:

> I want to make a page that load after you press a button from another page
> but without using form is this possible?
> I mean suppose I'm in page1.html, in page1 I've put a button and I
> want that when I'm pressing this button page2.html is loaded (not in
> another Netscape Windows). I want to do the same thing as if you
> click on a <a href> tag but instead I want to click on a button.

Well, buttons are always a form element; if you want a button you need a form.
 However, you can hava a form that only contains your button:

  <input type=button value="Pops" onClick="document.location.href='newURL' ;
   return true">


  d a t a b a s e s    a r e   i n   o u r  g e n e s
  Brian Karlak   bkarlak@panbio.com  (510) 337-7910 ph
  Manager, SciApps Group             (510) 522-9394 fx
  P  A  N  G  E  A     S  Y  S  T  E  M  S     I  N  C
For help about the list, 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'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/