need small javascript for greasemonkey

Posted by muqtar on Stack Overflow See other posts from Stack Overflow or by muqtar
Published on 2010-06-03T17:01:42Z Indexed on 2010/06/03 17:24 UTC
Read the original article Hit count: 166

Filed under:

HI, i need a greasemonkey code for a web page. The page has hidden input type and value. I need a gm script which can alert the value of the hidden input object as soon as the page loads.

The input tag is present in a form with:

form id="bloog" method="post" action= "/newpage.php" name="bloog">

The hidden content is present as:

<input type="hidden" value="abcd" name="ans">

now as soon as the page loads the value abcd must come in the alertbox.. some body please help me i've been trying for these...

© Stack Overflow or respective owner

Related posts about JavaScript