Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome: Go to URL via console

A long time ago, I was reading that there is a way to go to a specific URL via the Chrome Console. I am wondering if anyone knows the command that would do so?

like image 543
Jon Avatar asked Jul 12 '13 17:07

Jon


People also ask

How do I open URL in browser with developer console?

Chrome. Step 1: To open the console in Chrome, use this keyboard shortcut: "Cmd + Option + J" (on a Mac) or "Ctrl +Shift +J" (on Windows). As an alternative, you can right-click on the webpage and click "Inspect" to open the developer console.

How do I run a Chrome program from the console?

Open Chrome, press Ctrl+Shift+j and it opens the JavaScript console where you can write and test your code.

How do I open links in Chrome?

Open Chrome URLs from desktop shortcuts. Just create a desktop shortcut with this address: "C:\Program Files\Google\Chrome\Application\chrome.exe" --new-window chrome-extension://dbbbifdnlcppldcgbfopgpcienlemhnm/open.html?key=chromeurls#settings/passwords Change settings/passwords with desired url!


1 Answers

Try this:

this.document.location = "http://stackoverflow.com/"
like image 67
Esdras Beleza Avatar answered Jan 05 '23 07:01

Esdras Beleza