Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Get info from browser known only to JavaScript?

by BooK (Curate)
on Mar 14, 2001 at 02:49 UTC ( [id://64247]=note: print w/replies, xml ) Need Help??


in reply to Get info from browser known only to JavaScript?

You could try something along those lines:

<html> <head> <script language="JavaScript"> <!-- function fetch_size () { document.myForm.x = /* some useful code */; document.myForm.y = /* some useful code */; document.myForm.submit(); } --> <body onload="javascript:fetch_size()"> <form action="/index.php" method="post" name="myForm"> <input type="hidden" name="x" value="-1"> <input type="hidden" name="y" value="-1"> </form> </body> </html>

Please remember that I don't know JavaScript, so this might not even compil^Wwork...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://64247]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2025-06-21 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.