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 to the CF scene
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    4
    Thanked 0 Times in 0 Posts

    displaying a value in javascript

    Hi,
    I have a question in javascript, that is, is it possible to display a value of an variable in another html page when a button is clicked?

    For example, i set a value in page_1. html as abc=5 and when a button is clicked the value of abc should be displayed in page_2.html

    thanks
    Glen

  2. #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,878
    Thanks
    211
    Thanked 2,621 Times in 2,599 Posts
    See:-

    http://www.javascriptkit.com/javatutors/send1.shtml

    or you could set a cookie.



    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

  3. Users who have thanked Philip M for this post:

    glen_25 (03-27-2009)


 

Tags for this Thread

Posting Permissions

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