Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2008
    Posts
    13
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Want to pass variable to another page

    Hi-
    I want to pass an image variable to another window. I call an image when I click a button and want that image to show up when I click another button to navigate to a new window.
    Is this possible? Do I just call it the same thing :document.image1.src

    Does it go in the j.script or in the header or in the markup?

    Thanks!
    N_N

  • #2
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    You can do that by submitting a form.
    It could be a hidden form as well that the user does not know that there is a form on the page.

    Like this:

    Code:
    <a href="www.somepage.com" onclick="myform.submit();return false;">Click here!</a>


  •  

    Posting Permissions

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