www.webdeveloper.com
Results 1 to 3 of 3

Thread: Changing page value live (without using Firebug)

  1. #1
    Join Date
    Feb 2010
    Posts
    2

    Post Changing page value live (without using Firebug)

    Hallo! I have a question:
    Is there a trick (with javascript or something) that can help me change a hidden value on a page directly from the browser without using "Firebug" software?
    for example: <input type="hidden" name="something" value="something_else">
    I need to change "something_else" to "something_else_2"
    Please help... Thanks in advance!

  2. #2
    Join Date
    Feb 2010
    Location
    Amsterdam
    Posts
    174
    hey if you put this in the adress bar

    javascript:void(document.getElementsByName('something')[0].value = 'something else 2')

    and execute it will change the value

    you can check if it has been changed with putting this in the address bar:

    javascript:alert(document.getElementsByName('something')[0].value)

  3. #3
    Join Date
    Feb 2010
    Posts
    2
    Thanks man! you made my day!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •  
HTML5 Development Center



Recent Articles