tcovert
01-17-2004, 12:08 PM
Using Java, how would I make it so when I clicked on a button,it opens another page, in another window, and passes a value from the current page to it?
|
Click to See Complete Forum and Search --> : Open new window and pass value to it tcovert 01-17-2004, 12:08 PM Using Java, how would I make it so when I clicked on a button,it opens another page, in another window, and passes a value from the current page to it? AdamGundry 01-17-2004, 02:02 PM Do you mean Javascript, or Java? They are completely different languages. Assuming you mean JS, you can do something like this: <button onclick="window.open('newpage.php?myVariable=value')">Open Window</button> Adam P.S. Bear in mind you should not really use popups, and your page should be accessible with Javascript disabled. tcovert 01-17-2004, 03:03 PM It works now..thanks. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |