Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference in browser behavior when clicking a link vs. copy-pasting it?

I'm curious what sort of difference there is in browser behavior when loading a page by clicking through a link vs. copy-pasting said link into the browser bar. Is there a general difference in the load process that I should know about?

I ask because I am working on an application using the Google Maps API, in which the user is able to create custom map links with a GPS location defined in the URL. The links work fine when copy-pasted into the browser; however, if the link is clicked directly, the browser generates a 'stack exceeded' exception (appropriate for this site!).

While I understand that generally we like to see code examples on Stack Overflow, I'm going to refrain from that for now - perhaps if anyone knows about differences in the DOM loading process between click and copy-paste, I can use that to narrow in on the issue without bogging down the discussion with tangentially-related code.

The same issue occurs in both Firefox and Chrome.

thanks!

like image 281
Nik Avatar asked Nov 30 '12 00:11

Nik


1 Answers

Instead of copying and pasting the link, try right clicking and copying the link address. Basically, the links on a web page can display differently than they are.

like image 76
Benjamin Powers Avatar answered Sep 23 '22 00:09

Benjamin Powers