QR Codes can do a lot – Share website URLs between phones

Ever got stuck just before sharing a URL to your phone while reading it on your PC or even on a friend’s phone? Well that’s a common issue with a lot of users as to just sharing a simple URL you need to get into thinking what should you do now. And that even sometimes troubles me a lot.

Even though I am as well a software developer and have got various tricks to get around such a problems to facilitate myself, this trick of JavaScript is really a useful addition in my list. Remember “Faisal”? a mobile developer from Pakistan who has been featured a couple of times for his apps and games on techprolonged. He messaged me over the twitter this morning to let me know about this quick trick to get over with the sharing issues of simple text or URLs between mobile devices.

Wait! don’t think about copying text or URL and sending it over SMS or Email or anything like that e.g. bluetooth etc. etc. Just stop thinking about that. That’s really a waste of time, I never did that. You really want to know what Faisal has brought to you. This is the JavaScript code that simple interacts with Google’s QR Code API to generate a QR code of the URL that you are currently reading on. So how will it work? Simply go as follows.

Pick up the following code. (You will need to select and copy it.)

javascript:(function(){function QRCoder(){var u=window,t=document,n=t.createElement("div"),r=t.createElement("img"),i;r.src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl="+window.location,n.id="QRCoder",n.style.padding="60px",n.style.border="1px solid #f00",n.style.textAlign="center",n.style.backgroundColor="#ccc",n.>
  1. Select and copy the above code and create a bookmark in your browser. You can do it in any browser on your PC or on your smartphone by going to the bookmarks or favorites manager in your browser. (Placing the bookmark in quick toolbar is good idea e.g. under the address bar in PCs)
  2. That’s actually it and it’s ready to be used. If this is your favorite web page and you want to share this page to your smartphone in seconds. Just click the bookmark you have created above and wait for a QR code appear right in a popup layer.
  3. Pickup your phone where you want to move this URL. Open up a QR code reader and point that on this QR code. There you go.
If you need any help, a video demo is there for you.

 

 

You really need to appreciate it. Thank you Faisal for such a quick fix to a very common problem.

 
[source]

Khurram Ali

Founder at Tech Prolonged Software Engineer by profession - Independent Tech/Gadget Blogger. Writes and reviews at Tech Prolonged for new gadgets/smartphones. @Twitter Facebook Google Plus

Recent Posts

Starlink Internet in Pakistan – What’s the Status and Possible Pricing

In an exciting development for Pakistan’s tech landscape, SpaceX’s revolutionary satellite internet service, Starlink, could…

4 months ago

Google Wallet Launching in Pakistan This January

In an exciting development for digital payment enthusiasts, Google has announced the expansion of its…

4 months ago

Beme Unveils the Beme Nomad Boost: A Revolutionary 4-in-1 Powerbank

Beme, a pioneering tech brand, is thrilled to introduce its latest innovation, the Beme Nomad…

10 months ago

With Presto, Apple can now update box-packed iPhone to latest iOS version in Stores

Apple is gearing up for the highly anticipated launch of the iPhone 16 lineup later…

1 year ago

OPPO Unveils the Reno11 Series 5G in Pakistan – Price and Detail Inside

OPPO, known for its innovation in smart devices, has announced the launch of its high-end…

1 year ago

Vivo Y03 launched in Pakistan – Check Price and Detail

Vivo, a leading global smartphone brand, has unveiled its latest addition to the Y Series…

1 year ago