javascript that writes in the google chrome url bar -
i want try , right code guess default ip of router connected to. this, write bit of javascript code type google chrome url bar , attempt search it. instance: type 192.168.0.0 , 192.168.0.1, etc... largest problem have no idea how write code locate , type url bar, other user input. how this?
url bar not part of window couldn't locate using javascript dom elements.
to read , write url use window.location (more find here: https://developer.mozilla.org/en-us/docs/web/api/window/location).
if change window.location address, force browser load new content, in same way reloading page. remember loading new page lead discarding javascript code if loaded within website.
another way use iframe , dynamically change url, here: dynamically set iframe src
if want make tool iterates through possible addresses, recommend writing chrome extension. more , tutorial available here: https://developer.chrome.com/extensions
Comments
Post a Comment